good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Memory efficient way to deal with really large arrays?by LanX (Saint) |
on Dec 13, 2020 at 13:01 UTC ( [id://11125104]=note: print w/replies, xml ) | Need Help?? |
That's brilliant. It's simple and very efficient. Another approach would have been to pack the pairs into a 64 bit string to be stored in one array, that might be more efficient but wouldn't be as simple as this trick.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|