![]() |
|
There's more than one way to do things | |
PerlMonks |
Re: Shrunk array takes more memory than originalby choroba (Cardinal) |
on Nov 10, 2015 at 12:26 UTC ( #1147351=note: print w/replies, xml ) | Need Help?? |
The only way how to shrink the memory is to allocate a new array (or undef, but then you can't keep any values after shrinking).
See also How do I shrink an array in Perl? on StackOverflow.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|