No, i did not mean freeing memory from lexicals. I meant the memory
allocated for the temporary results, such as
my $a = 'x' x 100
Here perl allocates 1M for $a and 1M for evaluating the right part,
after that it is possible to undef $a and reuse its memory (1M),
but the right part
Today I discovered a strange behaiviour of perl,
and I wonder if anybody can tell me what to do with it.
The matter is that perl DOES NOT REUSE MEMORY allocated for
intermediate calculation results. This is specially harmful to
data-intensive modperl applications where one perl process
y mod_perl processes are getting bigger
with time -- about 200 requests is making the process
fatter by 1mb on the average. I'm watching to see if
they will max out around the current level of 10 mb per child.
On Thu, Dec 07, 2000 at 07:53:16PM +0300, Ivan E. Panchenko wrote:
Today I