comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Using Ada.Containers.Vector and Limited Private types
Date: Sat, 12 Jul 2008 10:02:07 +0200
Date: 2008-07-12T10:02:10+02:00	[thread overview]
Message-ID: <3wj5qjj3en9u.67evy1hz12v3$.dlg@40tude.net> (raw)
In-Reply-To: 940db060-ef08-4e1c-9556-0514181183eb@j22g2000hsf.googlegroups.com

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



  parent reply	other threads:[~2008-07-12  8:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-05 11:53 Using Ada.Containers.Vector and Limited Private types Dale Stanbrough
2008-07-05 15:42 ` george.priv
2008-07-06 18:09 ` Gene
2008-07-06 19:18   ` Dmitry A. Kazakov
2008-07-07 13:29     ` Gene
2008-07-07 14:15       ` Dmitry A. Kazakov
2008-07-07 18:39         ` Gene
2008-07-10  0:16   ` Dale Stanbrough
2008-07-10  7:31     ` Dmitry A. Kazakov
2008-07-10 22:59     ` Gene
2008-07-11 22:06       ` Jeffrey R. Carter
2008-07-12  2:45         ` Gene
2008-07-12  4:41           ` Jeffrey R. Carter
2008-07-13 15:30             ` Gene
2008-07-13 18:10               ` Jeffrey R. Carter
2008-07-16 21:23               ` Simon Wright
2008-07-12  8:02           ` Dmitry A. Kazakov [this message]
2008-07-12  7:53       ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox