Re: Performance Improvements

From: Date: Sun, 24 Feb 2002 04:44:36 +0000
Subject: Re: Performance Improvements
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-17238@lists.php.net to get a copy of this message
Also, do you really need all those trim()'s? Maybe at least you could replace them with ltrim()'s or rtrim()'s - I don't know what your data is, but maybe you can pre-parse it? (i.e. keep the data trimmed in the db). All of the if ($something > 0) can generally be changed to if ($something) - do you really need to check whether they're positive values? And the last thing I can think of: I don't know if this would really make a difference, but you can try echoing the whole thing from php - using less PHP open and close tags. For static strings, you should use single quotes so they're not checked for variables. HTH Bogdan Bogdan Stancescu wrote:
My first suggestion: replace all split() calls with explode() calls. Bogdan


« previous php.db (#17238) next »