- Subject: Re: [slang-users] SLANGFUN and arrays .....
- From: Paul Boekholt <p.boekholt@xxxxxxxxx>
- Date: Wed, 06 Jul 2005 01:34:24 +0200
On Tue, 5 Jul 2005 18:13:11 -0400, Michael Noble <mnoble@xxxxxxxxxxxxx> said:
> This kind of operation will likely involve the creation of temporary
> arrays, so keep performance in mind for large arrays or perhaps trade
> off to associative arrays to conserve space/memory and time (removal
> would happen in O(1) time simply setting array["string_index"] = NULL
> or something).
Or use a list. From the manual:
The most important difference between an array and a list is that an
array's size is fixed whereas a list may grow or shrink. Algorithms that
require such a data structure may execute many times faster when a list is
used instead of an array.
_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html
[2005 date index]
[2005 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]