Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^2: Memory issue with Hash

by Anonymous Monk
on Dec 03, 2012 at 04:24 UTC ( #1006782=note: print w/replies, xml ) Need Help??

in reply to Re: Memory issue with Hash
in thread Memory issue with Hash

Should be obvious enough... Emptying or undef'ing a hash might or might not set the reference-count of the objects in question to zero. And even if it does, garbage collection might not occur immediately. So the statement is quite pragmatically correct: you can zap a hash, check the memory allocation immediately thereafter, and find that nothing at all has changed. Yet. If the OP finds that memory is not being released, odds are quite good that there are circular references going on here which haven't been weakened.

Replies are listed 'Best First'.
Re^3: Memory issue with Hash
by BrowserUk (Pope) on Dec 03, 2012 at 05:34 UTC
    Should be obvious enough...

    Guess on if you like. I'll wait for the evidence.

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    RIP Neil Armstrong

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006782]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2018-06-24 08:15 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.