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

Re: Does undef free ram?

by Marza (Vicar)
on Jul 17, 2002 at 06:11 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://182348]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-26 06:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found