Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: tracking down a memory leak in $_

by perrin (Chancellor)
on Jul 20, 2006 at 19:40 UTC ( #562690=note: print w/ replies, xml ) Need Help??


in reply to Re^2: tracking down a memory leak in $_
in thread tracking down a memory leak in $_

If the data that you put in $_ or any other variable becomes larger at some point, then the memory grows, and it stays larger. The memory will get reused for that variable, but it won't be returned.

One thing that often bites people is that reading a nested hash can create hash keys and use more memory. For example:

$foo{bar}->{baz}->{quux};
If there was no baz key before, there is now, and that takes some space.


Comment on Re^3: tracking down a memory leak in $_
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://562690]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2014-07-24 06:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (158 votes), past polls