[slang-users] SLANGFUN and arrays .....
Paul Boekholt
p.boekholt at hetnet.nl
Tue Jul 5 19:34:24 EDT 2005
On Tue, 5 Jul 2005 18:13:11 -0400, Michael Noble <mnoble at space.mit.edu> 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.
More information about the slang-users-l
mailing list