Re: Remove vars from memory?

From: Date: Sun, 07 Sep 2003 20:55:11 +0000
Subject: Re: Remove vars from memory?
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-161933@lists.php.net to get a copy of this message
Thanx for your advice. I put this question because I need to increase performacne of the server. So I must use unset() wherever is possible :o) Thanx Emo "Dan Anderson" <dan@mathjunkies.com> pí¹e v diskusním pøíspìvku news:1062963830.470.10.camel@syr-24-58-14-3.twcny.rr.com... > > Note that you don't technically need to worry about it but if you are > > going to work with other languages it is a good habit to get into. > > Also I have noticed a significant performance increase in scripts that > > are coded more cleanly, if you don't need a variable anymore unset() > > it. > > Well yes, the kind of programming you plan on doing makes a large > different. I wouldn't code an enterprise script the same way I do a > quick and dirty script to do something. You need to look at what you > are doing and its purpose. Sometimes you want to squeeze every iota of > performance out of your scripts. Sometimes you just want to get it > done. :-D > > -Dan

« previous php.general (#161933) next »