Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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

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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://182348]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2018-03-18 08:27 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (229 votes). Check out past polls.