perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perrin Harkins" <per...@elem.com>
Subject Re: Reducing memory usage using fewer cgi programs
Date Sun, 26 Oct 2008 03:47:34 GMT
On Sat, Oct 25, 2008 at 7:34 AM, Clinton Gormley <clint@traveljury.com> wrote:
> Michael Peters' comment about memory reuse was saying that:
> - if at runtime, you load a large memory structure
> - then let those variables go out of scope
> - then that memory will be come available for reuse by Perl

I won't try to speak for Michael, but technically that memory does not
become available for reuse by Perl, even if they are lexical variables
and they go out of scope, unless you explicitly undef the variables.
Perl keeps the memory for them allocated as a performance
optimization.

- Perrin

Mime
View raw message