News Feed
Sections




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

Brandon Savage's Blog:
Micro Optimizations That Don't Matter
October 26, 2009 @ 08:42:42

Following on the heels of his previous post, Micro Optimizations that Matter, Brandon Savage has taken on all of the articles out there that tout several common misconceptions about what micro-optimizations make your scripts really run faster in this new post to his blog.

Last week I wrote about some optimizations you can apply to your code that will improve the performance of your site significantly. I also mentioned that regularly an article pops up talking about ways to shave time off your scripts, and I talked about how these articles mostly are bunk. Like this one. The article I linked above is a run-of-the-mill micro optimization list. The difference here is that the author actually makes use of some benchmarks to make their point. So, let's go step by step and discover together why this article takes longer to read than the amount of CPU time it saves.

He covers a few different categories including looping, quotes in strings, echo versus print, pathing, timestamps and using the regular expression functions (like ereg_* and preg_*).

0 comments voice your opinion now!
microoptimization performance


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Webinars: Upcoming Zend Webinars (Zend Server, Magento, Performance, IBM i)

Christopher Jones' Blog: Statement caching bug fix to improve performance of OCI8 extension

dynaTrace Blog: Top 10 Performance Problems taken from Zappos, Monster, Thomson and Co

Symfony Blog: New in Symfony 2.7: Twig as a First-Class Citizen

Stoyan Stefanov's Blog: Performance Advent Calendar 2009


Community Events





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


opinion voicesoftheelephpant conference configure introduction interview symfony list api threedevsandamaybe series community unittest laravel version language composer framework podcast release

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