Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Memory issue with Hash

by zentara (Archbishop)
on Dec 02, 2012 at 11:40 UTC ( #1006709=note: print w/ replies, xml ) Need Help??

in reply to Memory issue with Hash

If you really need to reclaim memory from a big hash, fork off the code, and let the fork do the work. When the fork's pid is terminated, all memory will be returned to the OS. It is a little more complicated to fork things off, but you get complete control over memory being returned.

See Parallel::ForkManager and IO::Pipe for some helpful modules.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Comment on Re: Memory issue with Hash

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2015-12-01 02:35 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (791 votes), past polls