Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Does undef free ram?

by Marza (Vicar)
on Jul 17, 2002 at 06:11 UTC ( #182348=note: print w/ replies, xml ) Need Help??


in reply to Does undef free ram?

I think undef will be fine if you are dumping the hash or array.

Also how many elements are you talking about? I have to ask because one of my partners was concerned about the same thing and he had 100 elements? ;)

Many machines these days have tons of ram and it quickly recovers stuff once a job completes. So it is good to be clean but don't get too freeked out unless of course you have gigantic arrays and hashes.

Just my .02


Comment on Re: Does undef free ram?
Re: Re: Does undef free ram?
by Xxaxx (Monk) on Jul 17, 2002 at 06:31 UTC
    I believe my arrays will be limited to 10,000 or less. Normally I wouldn't be concerned because I've never seen a problem with Perl on a Linux box holding ram after the job completes. I don't know if this is to the credit of Linux or Perl or both. But so far once the job completes it looks like all ram is returned.

    However since I'll be using a couple of dozen 10,000+ arrays one after the other during the same job I was concerned about memory during the job.

    Claude

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (15)
As of 2014-10-20 18:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (88 votes), past polls