in reply to Howto Avoid Memory Problem in List::MoreUtils
In any case, since one way or another you'll need to sacrifice some runtime to economize on memory usage, a last resort might be to simply save @very_big_array to a disk file, run unix "sort -u" on that, and read it back in to the same array variable. (Obviously not an attractive option if portability is an issue, but if this is just an "in-shop" process, unix "sort" has been ported to every popular OS.)my @uvery_big_array = @very_big_array;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Howto Avoid Memory Problem in List::MoreUtils
by salva (Canon) on May 05, 2006 at 09:06 UTC | |
|
Re^2: Howto Avoid Memory Problem in List::MoreUtils
by Anonymous Monk on May 26, 2006 at 02:55 UTC | |
by salva (Canon) on May 26, 2006 at 08:46 UTC | |
by Anonymous Monk on May 27, 2006 at 14:34 UTC |