From 4a2fd1b332b05e4d5e152fb710bce3f70a4e77a1 Mon Sep 17 00:00:00 2001 From: Loulier Guillaume Date: Sun, 26 Nov 2017 09:49:48 +0100 Subject: [PATCH 1/4] [FIX](Realpath) As PHP 7.2 provide a default value of 4096k (as seen https://github.com/php/php-src/blob/php-7.2.0RC6/UPGRADING#L357), the line about this improvement can be deleted. --- performance.rst | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/performance.rst b/performance.rst index 82ca370e33d..7d4b963c78a 100644 --- a/performance.rst +++ b/performance.rst @@ -79,15 +79,11 @@ real and absolute file system paths. This increases the performance for applications like Symfony that open many PHP files, especially on Windows systems. -By default, PHP sets a ``realpath_cache_size`` of ``16K`` which is too low for -Symfony. Consider updating this value at least to ``4096K``. In addition, cached -paths are only stored for ``120`` seconds by default. Consider updating this -value too using the ``realpath_cache_ttl`` option: +By default, cached paths are only stored for ``120`` seconds by default, consider updating this value using the ``realpath_cache_ttl`` option: .. code-block:: ini ; php.ini - realpath_cache_size=4096K realpath_cache_ttl=600 .. index:: From e2a1bcf43da9d56452f9619e2ba22f1fd1253920 Mon Sep 17 00:00:00 2001 From: Loulier Guillaume Date: Thu, 30 Nov 2017 11:35:13 +0100 Subject: [PATCH 2/4] fix(tip): Add the tip block for realpth_cache_size Added the tip block for PHP 7.2. --- performance.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/performance.rst b/performance.rst index 7d4b963c78a..0b1b8ab4ce0 100644 --- a/performance.rst +++ b/performance.rst @@ -84,10 +84,15 @@ By default, cached paths are only stored for ``120`` seconds by default, conside .. code-block:: ini ; php.ini + realpath_cache_size=4096K realpath_cache_ttl=600 .. index:: single: Performance; Autoloader + +.. tip:: + +   Since PHP 7.2, the default value for ``realpath_cache_size``has been set to 4096K, feel free to delete this trick in your     ``php.ini`` file. Use Composer's Class Map Functionality -------------------------------------- From 40a675794415d3027ce54e79c16f0e00fb09d62d Mon Sep 17 00:00:00 2001 From: Loulier Guillaume Date: Fri, 1 Dec 2017 13:51:48 +0100 Subject: [PATCH 3/4] fix(syntax): added a space before has --- performance.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/performance.rst b/performance.rst index 0b1b8ab4ce0..d8c57f59a0e 100644 --- a/performance.rst +++ b/performance.rst @@ -92,7 +92,7 @@ By default, cached paths are only stored for ``120`` seconds by default, conside .. tip:: -   Since PHP 7.2, the default value for ``realpath_cache_size``has been set to 4096K, feel free to delete this trick in your     ``php.ini`` file. +   Since PHP 7.2, the default value for ``realpath_cache_size`` has been set to 4096K, feel free to delete this trick in your     ``php.ini`` file. Use Composer's Class Map Functionality -------------------------------------- From dbbe45c3d10ad702ce7c99f392a959ecdd3c6b11 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Fri, 1 Dec 2017 13:42:03 -0500 Subject: [PATCH 4/4] tweaking language --- performance.rst | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/performance.rst b/performance.rst index d8c57f59a0e..f3f321ee457 100644 --- a/performance.rst +++ b/performance.rst @@ -79,20 +79,17 @@ real and absolute file system paths. This increases the performance for applications like Symfony that open many PHP files, especially on Windows systems. -By default, cached paths are only stored for ``120`` seconds by default, consider updating this value using the ``realpath_cache_ttl`` option: +Consider increasing the ``realpath_cache_size`` and ``realpath_cache_ttl``: .. code-block:: ini ; php.ini + ; 4096k is the default value in PHP 7.2 realpath_cache_size=4096K realpath_cache_ttl=600 .. index:: single: Performance; Autoloader - -.. tip:: - -   Since PHP 7.2, the default value for ``realpath_cache_size`` has been set to 4096K, feel free to delete this trick in your     ``php.ini`` file. Use Composer's Class Map Functionality --------------------------------------