News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHP 10.0 Blog:
PHP performance tips from Google
June 26, 2009 @ 08:43:15

In this new post to the PHP 10.0 blog Stas has some responses to the recent suggestions from Google as to how to optimize your applications.

There are a bunch of advices there, some of them are quite sound, if not new '" like use latest versions if possible, profile your code, cache whatever can be cached, etc. Some are of doubtful value '" like the output buffering one, which could be useful in some situations but do nothing or be worse in others, and if you're a beginner generally it's better for you to leave it alone until you've solved the real performance problems.

He mentions four things that need amending from what Google suggests:

  • Don't copy variables for no reason
  • Avoid doing SQL queries within a loop.
  • Use single-quotes for long strings
  • Use switch/case instead of if/else
1 comment voice your opinion now!
correction google tip performance


blog comments powered by Disqus

Similar Posts

International Stock Exchange Forum: Getting RSS Feeds into Lively

PHPClasses.org Blog: PHP compiler performance

Marco Tabini's Blog: 5 PHP Performance Tips You Probably Don't Want To Hear

PHPClasses.org: Lately in PHP, Episode 32 - Zend Optimizer+ Cache in PHP 5.5 & MySQL 5.6

HHVM Blog: We are the 98.5% (and the 16%)


Community Events











Don't see your event here?
Let us know!


hhvm application install release component introduction composer code podcast framework overview facebook security hack example opinion package unittest language symfony2

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework