From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6c43f45c2ab47c51 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!storethat.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Using Ada.Containers.Vector and Limited Private types Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <8ff4c6c2-9892-463e-bdfd-1f7bfd78d607@s50g2000hsb.googlegroups.com> <4c5bfeb0-daa0-45e4-82f0-eebabda565e9@d45g2000hsc.googlegroups.com> <6QQdk.194211$TT4.37376@attbi_s22> <940db060-ef08-4e1c-9556-0514181183eb@j22g2000hsf.googlegroups.com> Date: Sat, 12 Jul 2008 10:02:07 +0200 Message-ID: <3wj5qjj3en9u.67evy1hz12v3$.dlg@40tude.net> NNTP-Posting-Date: 12 Jul 2008 10:02:10 CEST NNTP-Posting-Host: b845dacc.newsspool1.arcor-online.net X-Trace: DXC=]oeVFj?b<4QV;Ef1`Jk54\ic==]BZ:af^4Fo<]lROoRQ<`=YMgDjhgR3Geomji7SkNeEST?YjP@85C]2Zm4YW X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:1122 Date: 2008-07-12T10:02:10+02:00 List-Id: On Fri, 11 Jul 2008 19:45:47 -0700 (PDT), Gene wrote: > I do not find that relying on a simple new' and storage pool for > release to be a very intimidating form of memory management. Yes, if you put the pool into the object that manages the cache of file items. There are advantages and disadvantages of arenas. One disadvantage is that you should somehow know the pool size in advance. (I use segmented pools for such cases with variable segment sizes.) Another disadvantage is that arenas do not do well with controlled types. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de