Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Not able to release memory

by eyepopslikeamosquito (Chancellor)
on Mar 03, 2004 at 11:13 UTC ( #333509=note: print w/ replies, xml ) Need Help??


in reply to Not able to release memory

Just a couple of random extra thoughts that may be of interest. To find the memory usage of Perl variables, try the Devel::Size module (by a very distinguished and busy Perl-6 architect, I see;-).

To pre-size a hash, use the keys function as a l-value; see perldoc -f keys for details. That is, if you know in advance that the hash is going to be very big, pre-sizing it will certainly improve speed, and may improve memory usage a little (untested).

/-\


Comment on Re: Not able to release memory
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2015-07-30 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls