Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Memory efficient way to deal with really large arrays?by salva (Canon) |
on Dec 13, 2020 at 11:37 UTC ( [id://11125100]=note: print w/replies, xml ) | Need Help?? |
Instead of using an array of arrays for storing the pairs, you can use two arrays, one for the first elements and another for the second ones. That is going to reduce your memory consumption by an order of magnitude:
In Section
Seekers of Perl Wisdom
|
|