Sometimes, taking a step back is the best solution. Especially when you are stuck. Here’s some experiences of what can help when stuck on some code.
Recently I had to debug the bad performance of an API. Some calls took over 10 seconds. I immediately thought it might be related to SQL, but what I found surprised me…
Over the years there’s been a lot of tools to improve the performance of PHP. Sometimes, these were tools specifically aimed at PHP (such as APC or the Zend Optimizer), at other times we’ve been hooking into existing tools (such as Memcache). But in all these situations, the actual PHP code was left alone and…