From bab2a29b5b4930321e6d8a2d020e4f35165feddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Pelletier?= Date: Sat, 25 Oct 2014 14:12:44 +0200 Subject: [PATCH 1/2] add a note about apc for php recent versions apc is not required for php5.5+, I suggest to mention it to avoid people trying to install it on recent php versions --- book/performance.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/book/performance.rst b/book/performance.rst index e3f296484ad..e4eef7debbd 100644 --- a/book/performance.rst +++ b/book/performance.rst @@ -18,8 +18,9 @@ Use a Byte Code Cache (e.g. APC) One of the best (and easiest) things that you should do to improve your performance is to use a "byte code cache". The idea of a byte code cache is to remove the need to constantly recompile the PHP source code. There are a number of -`byte code caches`_ available, some of which are open source. The most widely -used byte code cache is probably `APC`_ +`byte code caches`_ available, some of which are open source. If you are using +PHP 5.5 or more, the byte code cache is built-in into PHP runtime. For older versions, +the most widely used byte code cache is probably `APC`_ Using a byte code cache really has no downside, and Symfony has been architected to perform really well in this type of environment. From 95d09e97b2eaf415da72b6a80458e2e96831b0d1 Mon Sep 17 00:00:00 2001 From: WouterJ Date: Fri, 20 Feb 2015 00:16:48 +0100 Subject: [PATCH 2/2] Minor rewording --- book/performance.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/book/performance.rst b/book/performance.rst index e4eef7debbd..e3496b42476 100644 --- a/book/performance.rst +++ b/book/performance.rst @@ -18,9 +18,9 @@ Use a Byte Code Cache (e.g. APC) One of the best (and easiest) things that you should do to improve your performance is to use a "byte code cache". The idea of a byte code cache is to remove the need to constantly recompile the PHP source code. There are a number of -`byte code caches`_ available, some of which are open source. If you are using -PHP 5.5 or more, the byte code cache is built-in into PHP runtime. For older versions, -the most widely used byte code cache is probably `APC`_ +`byte code caches`_ available, some of which are open source. As of PHP 5.5, +PHP comes with `OPcache`_ built-in. For older versions, the most widely used +byte code cache is probably `APC`_ Using a byte code cache really has no downside, and Symfony has been architected to perform really well in this type of environment. @@ -140,6 +140,7 @@ feature is disabled in the byte code cache (e.g. ``apc.stat=0`` in APC), there is no longer a reason to use a bootstrap file. .. _`byte code caches`: http://en.wikipedia.org/wiki/List_of_PHP_accelerators +.. _`OPcache`: http://php.net/manual/en/book.opcache.php .. _`APC`: http://php.net/manual/en/book.apc.php .. _`autoload.php`: https://github.com/symfony/symfony-standard/blob/master/app/autoload.php .. _`bootstrap file`: https://github.com/sensio/SensioDistributionBundle/blob/master/Composer/ScriptHandler.php