From: achrist@easystreet.com
Subject: Re: Problem with Gnat.Dynamic_Tables
Date: Fri, 12 Jul 2002 09:56:29 -0700
Date: 2002-07-12T09:56:29-07:00 [thread overview]
Message-ID: <3D2F0A3D.8DEF335F@easystreet.com> (raw)
In-Reply-To: 3D2EE650.8070200@bluewin.ch
Mats Weber wrote:
>
>
> 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.
I wanted a variable-length array of variable-length (Unbounded) strings,
with random access and update based on an integer (Natural) index.
This works fine with your generic Dynamic_Array, thanks very much. If
I'm not leaking memory or going to have a crash at some point because of
not initializing, then I'm happy with the solution. I see that it
works like a Map, which means, I suppose, that there is some search
involved in simply accessing an element of the array, but this is not a
noticeable problem, given all the other inefficiencies in my code, which
hardly add up to anything noticeable in toto.
Thanks very much.
Al
next prev parent reply other threads:[~2002-07-12 16:56 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
2002-07-12 16:56 ` achrist [this message]
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