PHP Performance

I’ve noticed the performance of my PHP is dog slow. I’ve since put in some debugging code and performance measuring code. My code might not be as modular or pretty looking but at least it will work in a reasonable amount of time. Object oriented PHP is causing me many performance headaches. It was disgustingly slow.

Here’s a link to probably the best guide/page on the net on PHP optimisation.

http://www.wardontheweb.com/10-performance-tips-to-speed-up-php/
Another decent site/page with citations/references:

http://www.hm2k.com/posts/50-php-optimisation-tips-revisited

Problem Solved
It turns out much of my class headaches came from an extremely slow classloader function.
So if you are having issues with PHP class loading look into what your class loader is doing.
Mine was searching everywhere for the class and this was wasting gobs of time.
Meanwhiles all classes were in 2 directories.

Read about writing your own autoloader here for php classes.
http://php.net/manual/en/language.oop5.autoload.php

Leave a Reply

Your email address will not be published. Required fields are marked *