Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006709]
help
Chatterbox?
[stevieb]: I noticed that the unit I threw your way has touchscreen as well. I find I don't use the touch on mine often, but periodically it can be quite handy
[1nickt]: marioroy no, I am shopping.
[marioroy]: ah, ok. I searched the web for 17" laptop. Computer Shopper is still around. Did not know that.

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2017-03-26 18:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (315 votes). Check out past polls.