If refactoring your code is not an option (drop Zend Framework, Drop Doctrine, Drop ...), I would first optimize the purchase of the best equipment. This automatically optimizes your code, because the context of the code is simply shifted (this does not optimize the code exactly, since the code will not change).
If this is not an option, consider creating a build system for yourself that can pre-process your code base and create a non-working version to shorten the boot process. This requires analysis, which files are always necessary, and you compile them all in a format optimized for the loader, which can be a single file and / or static class loader card.
However, it is known that Zend needs to be loaded a lot into memory. Even using a PHP cache, such as APC, may already bring you something (think about pre-compiling with the previously noted build script and optimize the details highlighted by your metrics).
If your application structure allows this, there is another possibility: Store the entire application in memory between requests. This can be done using the PHP web server. This is done, the code needs to be downloaded only after the server starts and will no longer be needed to download. This only works with your own application if it supports multiple requests. A good encapsulated application, especially with request logic, can be easily adopted for this. The existing solution is appserver-in-php . You will be surprised how much speed is increasing compared to the benefits that you have already received from APC.
Perhaps this was helpful. Any additional, more specific proposals are difficult to make, since it is impossible to see your code in action or not have detailed indicators on it. You just conveyed a fragment about what is happening behind the scenes, so it’s hard for you to say more specifically.
hakre source share