|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: Very Large Arraysby educated_foo (Vicar) |
| on Feb 14, 2012 at 04:48 UTC ( #953610=note: print w/ replies, xml ) | Need Help?? |
|
I would guess that's a swapping problem (you might be able to verify this with /usr/bin/time -l). I can think of several ways to cut down on memory: (1) shuffle an array of indices; (2) store the indices in a string, and access them using vec; (3) use PDL, which has compact numerical arrays.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||