phpsymfonysymfony-2.1eaccelerator

Configuring symfony for using eaccelerator


Is there any configuration for improving performance of symfony2 by eaccelerator? And so is there any configuration for using eaccelerator to take advantage of doctrine "Query Cache,Result Cache,Metadata Cache"?


Solution

  • It's likely possible to use eAccelerator with Symfony2 and Doctrine, however there are issues you would need to resolve:

    1. Eaccelerator strips doc blocks by default, making Symfony/Doctrine pretty much non functional

    2. To see valuable performance gains with Symfony2 you would need to create an eAccelerator ClassLoader. You'll find most of the overhead in Symfony comes from file_exists calls in the autoloader if you don't optimize the composer autoload dump using --optimize (at least I do).