in reply to Re^2: memory "release" with $#=-1
in thread memory "release" with $#=-1
Note that this frees memory to the perl interpter, not to the OS. ie perl can reuse that memory when creating further data, but other processes can'tmy $a = []; $a->[$_] = $_ for 0..999; $#$a = 1; # frees up approx 16000 bytes undef @$a; # frees a further 4000 bytes undef $a; # frees a further 52 bytes
update: to clarify: just doing the undef $a on its own would free up all 20052 bytes too.
Dave.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: memory "release" with $#=-1
by ISAI student (Scribe) on Jun 28, 2005 at 14:01 UTC | |
Re^4: memory "release" with $#=-1
by waswas-fng (Curate) on Jun 28, 2005 at 19:22 UTC | |
by BUU (Prior) on Jun 28, 2005 at 19:31 UTC |
In Section
Seekers of Perl Wisdom