News Feed
Sections




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

Arnold Daniels' Blog:
Improve performace check your loops
January 28, 2008 @ 12:14:00

Arnold Daniels has a suggestion for developers out there to help improve the performance of their applications - check your loops.

So you have a script which is not performing the way you want to. The first thing you should do it try to find out what the problem is. There are some tools out there that can help you.

He mentions the profiler in Zend Studio as well as the one in XDebug. If you can't install those, however, he has another suggestion - FirePHP (a tool that can help time execution times in a simple and easy to include way.

With tools in hand, he offers a few suggestions as to what to check for and do in your applications:

  • Get the data ready before going into the loop
  • Don't do things in the loop, you can also do outside it
  • Use create_function to aid you
  • Be careful with abstraction in loops
  • Sometimes you can prevent loops altogether
  • Last resort: write an extension
0 comments voice your opinion now!
performance improve loop profile zendstudio firephp xdebug tips


blog comments powered by Disqus

Similar Posts

Christian Wenz's Blog: Zend Studio for Eclipse 6.0 Released (and Zend Studio 5.5.1, too)

Community News: Make PHP-Based Android Applications with Zend Studio 10

7PHP.com: Interview with Derick Rethans - The Father Of The PHP Swiss-Army Knife aka Xdebug

Chris Free's Blog: Drupal 101: 10 Tips for Drupal Beginners

SitePoint PHP Blog: PHP Support in NetBeans 6.5


Community Events





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


opinion code release framework wordpress community api threedevsandamaybe install podcast list introduction testing series interview developer laravel refactor language unittest

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