The last few weeks of development have driven me to adopt some old technologies from my C days. I've got PHP setup with a debugger (Xdebug and the buggy Komodo IDE) and a profiler (Kcachegrind) under Windows (WAMP Server). Today I optimised one tiny part of the DiSCO codebase:

Kcachegrind screenshot, before

Kcachegrind screenshot, before

You can see that the execution time of process() shrinks from 135 ms to 71 ms.

AttachmentSize
kcache_before.jpg270.84 KB
kcache_after.jpg274.43 KB