Kozz has asked for the wisdom of the Perl Monks concerning the following question:
As I was writing up some subroutines in some scripts I was doing, I got to remembering reading someone's comments, "why thrash memory?". And indeed, we can all agree that if you can lessen the total memory used by your script that it's a good thing, no?
So here's my question: When is it important to undef($variable) simply for the sake of being "nice" to memory? If the variable is going out of scope in another 0.25 seconds, should I forget about undefining that value? Or more importantly, when is it imperative that you undefine something?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Why Thrash Memory?
by chromatic (Archbishop) on Apr 01, 2000 at 01:03 UTC | |
by btrott (Parson) on Apr 01, 2000 at 01:16 UTC | |
Re: Why Thrash Memory?
by stephen (Priest) on Apr 01, 2000 at 04:01 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |
Back to
Seekers of Perl Wisdom