[Israel.pm] YAPC::Tokyo::2012

Pinkhas Nisanov pinkhas at nisanov.com
Tue Oct 2 02:31:58 PDT 2012


On Tue, Oct 2, 2012 at 8:48 AM, Shmuel Fomberg <shmuelfomberg at gmail.com>wrote:

> *after* the function is run, the Perl process will be 20MB big. and that
> memory is not usable for the rest of the program - it is reserved for
> func().
>
>
Hi Shmuel,

Can you explain "that memory is not usable for the rest of the program"?
AFAIK memory used by function will be usable for rest of program (if there
is no reference to that function). Just tested it with small script with
two recursive memory intensive functions.
After first function run memory grow up significantly, but after second
function memory did not grow at all. that means second function reused
memory used by first function.

thanks
Pinkhas Nisanov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.perl.org.il/pipermail/perl/attachments/20121002/3a86e38c/attachment.htm 


More information about the Perl mailing list