Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Memory usage of array and hashe variables by multiple inclusion.

by sundialsvc4 (Monsignor)
on Jul 02, 2013 at 13:51 UTC ( #1042011=note: print w/ replies, xml ) Need Help??


in reply to Memory usage of array and hashe variables by multiple inclusion.

A common cause of memory-leaks in Perl are circular references, whereby references among objects form a “loop” such that the reference-count to the members of the structure never returns to zero and so the memory never gets reclaimed.

Having “one thing in more than one place” is not a problem ... that’s just an object with multiple references to it ... so long as you arrange things such that, when an object is no longer required, all references to it go away.

The “virtual memory size” as seen by an operating system does not know anything about the in-use/free status of individual objects as seen by Perl.


Comment on Re: Memory usage of array and hashe variables by multiple inclusion.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2014-08-01 03:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (256 votes), past polls