Re: Memory issues
- From: jm <jm@xxxxxxxxx>
- Date: Sat, 29 Mar 2008 15:10:16 +0100
smallpond a écrit :
On Mar 29, 8:45 am, jm <j...@xxxxxxxxx> wrote:
Based on the fact that perl contains many memory leaks,
A universal way to measure how many memory is malloced is required.
Is there standard way to measure how many memory a process has
allacated, which run with cygwin perl, active perl, and strawberry perl?
This should help to localize which code makes memory leaks.
perldoc perlfaq3
See:
How can I make my Perl program take less memory?
How can I free an array or hash so my program shrinks?
It is interesting, but it does not seam to solve my substitution issue.
However I does not understand this:
« Memory allocated to lexicals (i.e. my() variables)
cannot be reclaimed or reused even if they go out of scope. It is
reserved in case the variables come back into scope. Memory allocated
to global variables can be reused (within your program) by using
undef()ing and/or delete(). »
Aren't my variables local variables?
Why aren't they freed when function terminates?
.
- Follow-Ups:
- Re: Memory issues
- From: smallpond
- Re: Memory issues
- References:
- Memory issues
- From: jm
- Re: Memory issues
- From: smallpond
- Memory issues
- Prev by Date: Re: Memory issues
- Next by Date: Re: Memory issues
- Previous by thread: Re: Memory issues
- Next by thread: Re: Memory issues
- Index(es):
Relevant Pages
|