in reply to Re: Re: Re: Tracking Memory Leaks
in thread Tracking Memory Leaks
I didn't know that about AUTOLOAD(). What do you mean by 'allocate additional memory every time'? Does that mean that every time I effectively call AUTOLOAD() (In my case, once for each undeclared function as I use AUTOLOAD() to then declare the function), the interpreter allocates a chunk of memory, or just that everytime I load a module with an AUTOLOAD() in it, it will allocate a larger chunk of memory than it would for a regular module? I know I miss out on compile-time optimizations for the system, but do those optimizations involve the re-use of resources, as opposed to the allocation of resources (which I know they involve)? I would expect that resource re-use would be a function of the running system, not the compile-time optimizations. If perl allocates memory for eval'd statements and AUTOLOAD()ed subroutines and then doesn't re-use it, that sounds like a pretty serious issue.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re5: Tracking Memory Leaks
by bikeNomad (Priest) on Aug 15, 2001 at 21:07 UTC | |
by dragonchild (Archbishop) on Aug 15, 2001 at 21:51 UTC |