Archive for February, 2011

Premature optimization is the root of all evil

There’s loads of ways you can optimize your PHP code, however they are probably NOT the answer to your performance issues.

A wiser man than myself once said:

We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%.

This was originally said by Donald Knuth, the father of the analysis of algorithms.

This can also be applied when working with programming languages such as PHP.

Here’s some handy performance tips to point you in the right direction…

Read the rest of this entry »

Comments (1)

rglob.php

Today I was having a look on PHP.net and noticed a PHP contest so I decided to submit one of my functions.

I chose the rglob() function.

Read the rest of this entry »

Comments (1)