opensubscriber
   Find in this group all groups
 
Unknown more information…

g : guile-devel@gnu.org 11 June 2012 • 8:12PM -0400

Re: Growable arrays?
by David Kastrup

REPLY TO AUTHOR
 
REPLY TO GROUP




David Kastrup <dak@gnu....> writes:

> Andy Wingo <wingo@pobo...> writes:
>
>> Hi,
>>
>> On Mon 11 Jun 2012 11:55, David Kastrup <dak@gnu....> writes:
>>
>>> Tables are a superset of what I need here.  I need the "growable vector"
>>> aspect, not the "hash part" aspect.  Guile 1.8 only offers subsets:
>>> "growable" does not come together with "vector".
>>
>> Why not just make your own growable vectors, then?  It will be just as
>> efficient.
>
> Sure, I will.  A native implementation would be able to benefit from
> storage layout conditions that would, in some cases, allow extending the
> array without allocating a new memory range, so it _can_ be done.

P.S.: I still need to look at vlists.  They might already address this
      issue, though I can't use them in Guile 1.8.

--
David Kastrup



Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.