From: Mats Weber <matsw@bluewin.ch>
Subject: Re: Problem with Gnat.Dynamic_Tables
Date: Fri, 12 Jul 2002 16:23:12 +0200
Date: 2002-07-12T16:23:12+02:00 [thread overview]
Message-ID: <3D2EE650.8070200@bluewin.ch> (raw)
In-Reply-To: 3D2E7EBC.C629C700@easystreet.com
achrist@easystreet.com wrote:
> http://lglwww.epfl.ch/Team/MW/mw_components.html
> This doesn't say anything about initialization, but it does say that
> there is no finalization. I wonder if this means that I'm leaking
> memory when I use these components for unbounded strings.
>
> Anyone have any pointers to more extensive docs for these?
Controlled types will work with my components because a new object is
created every time you insert into the table. and that is probably true
of all my structure components, even though they were developped in Ada 83.
GNAT.Dynamic_Table does not work because it preallocates an array for
storing its stuff, thus avoiding one allocation per insertion into the
table.
You should describe your problem (what do you need to store into the
table, what is the distribution of values of your index/key type ?) so
that we can give you a better hint for choosing the right component.
next prev parent reply other threads:[~2002-07-12 14:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-09 23:04 Problem with Gnat.Dynamic_Tables achrist
2002-07-11 0:19 ` achrist
2002-07-11 15:13 ` Robert Dewar
2002-07-11 20:35 ` achrist
2002-07-12 3:42 ` Robert Dewar
2002-07-12 7:01 ` achrist
2002-07-12 14:23 ` Mats Weber [this message]
2002-07-12 16:56 ` achrist
2002-07-12 22:52 ` Mats Weber
2002-07-12 23:02 ` achrist
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox