in reply to Very Large Arrays
I have just uploaded to CPAN Array::Shuffle, that is one or two orders of magnitude faster than List::Util::shuffle or your hand-crafted shuffle implementation in Perl.
It's memory usage is O(1).
(List::Util::shuffle is also implemented in C, but it has the wrong interface from a performance point of view)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Very Large Arrays
by Anonymous Monk on Sep 30, 2024 at 06:19 UTC | |
|
Re^2: Very Large Arrays
by Anonymous Monk on Feb 17, 2012 at 17:02 UTC | |
by salva (Canon) on Feb 17, 2012 at 17:27 UTC |