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)
In reply to Re: Very Large Arrays
by salva
in thread Very Large Arrays
by Desade
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |