in reply to Re^3: Best way to allocate some memory first
in thread Best way to allocate some memory first
Thanks, but honestly I don't plan looking into the details.
I second what Schwern said in the SO discussion:
(Only try this if ) You profiled and found a problem.
It would need MANY "40KB arrays" to make this count on a modern machine.
Whatever a "40KB array" means, arrays hold refs to other types, it's totally unclear what is meant here.
This smells like a problem which is best solved with packing into a 40 KB string.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In Section
Seekers of Perl Wisdom