Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Memory usage and perl

by pg (Canon)
on Mar 14, 2003 at 19:06 UTC ( #243152=note: print w/replies, xml ) Need Help??


in reply to Memory usage and perl

A more meaningful testing is, to put a big loop around your code, and let it loop say 1000 times. Monitor the memory usage, ideally, you should not see any radical memory usage jump, starting from the second loop. Because the memory allocated in the first loop should be reused, instead of allocate more memory.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://243152]
help
Chatterbox?
[perldigious]: Quick question, is undef %hash a recommended/good way to delete an entire hash structure from memory? Or sould I be doing it some other way?

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2017-07-21 19:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (335 votes). Check out past polls.