in reply to Memory efficient way to deal with really large arrays?
that's an illusion, if you use an array of bytes in C, you'll have 2**32 potential points. That's already 4.3GB for the occurrence counts in @d, not 1GB.
But if you think it's that easy in C, you'll easily reproduce it's arrays with pack , substr and unpack in Perl.
Of course slower, but you haven't told us yet what your goal is.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Memory efficient way to deal with really large arrays?
by salva (Canon) on Dec 13, 2020 at 18:18 UTC | |
by LanX (Saint) on Dec 13, 2020 at 19:01 UTC |