Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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]
LanX has to run
[Corion]: LanX: Sure I can, but this is nothing that interests my module. It might be of concern to the user who expect the Chrome version number to have meaning ;)
[LanX]: well you can warn about missing features...
[LanX]: ... i.e. avoid headaches about bug reports...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2017-12-12 20:36 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (336 votes). Check out past polls.