Think about Loose Coupling | |
PerlMonks |
memory usageby szabgab (Priest) |
on Jan 16, 2012 at 12:10 UTC ( [id://948127]=perlquestion: print w/replies, xml ) | Need Help?? |
szabgab has asked for the wisdom of the Perl Monks concerning the following question:
Given the following script:
using htop I see the script is uing 2Gb memory. Am I missing something or is that Perl created the 1Gb string in memory and then copies it tho $mem and does not release the original? With the emphasize on "copy". Further "research" shows that this code reports the usage of 3Gb memory and swapped out my browser so it is now very slow to type :).
Back to
Seekers of Perl Wisdom
|
|