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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,427e29f23a651ddb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Stefan Bellon Newsgroups: comp.lang.ada Subject: Re: Finding out minimal allocation unit Date: Thu, 05 Apr 2007 20:02:53 +0200 Organization: University of Stuttgart Message-ID: <4ecee3fe5esbellon@sbellon.de> References: <20070403144350.6c95e085@cube.tz.axivion.com> <1175606570.4684.11.camel@localhost> <461257ea$1@news.post.ch> <4ecea2f308sbellon@sbellon.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.t-online.com 1175796176 03 4895 ZM+B6FxlT5Poio 070405 18:02:56 X-Complaints-To: usenet-abuse@t-online.de X-ID: ZwTp6OZBreIih2HvbnRCX2oO-Q9BTfdT-aB-oPQscFS+qHcJOKX5Ya User-Agent: Pluto/3.04c (RISC-OS/5.11) NewsHound/v1.50-32 X-Request-PGP: http://www.sbellon.de/gpg.asc X-PGP-ID: 05360CB9 / 55DB 48FE BA59 7BA0 2B9D 4822 38C5 EC21 0536 0CB9 X-URL: http://www.sbellon.de/ Xref: g2news1.google.com comp.lang.ada:14799 Date: 2007-04-05T20:02:53+02:00 List-Id: Robert A Duff wrote: > There are many ways to do it. In your case, you have a large number > of small objects. In that case, it would make sense to allocate > large chunks of memory (possibly using "new"), and then have Allocate > chop them up into small pieces on request. This sounds good, provided that a) we can resize an already existing storage pool to increase the memory inside it, and b) we can really get at the size GNAT uses for each of the items (see my other posting with the unbounded string example). -- Stefan Bellon