From 9c8a003d94a9f40d9c02400237d87213e94a4cd5 Mon Sep 17 00:00:00 2001 From: Shyim <6224096+shyim@users.noreply.github.com> Date: Fri, 17 Jun 2022 08:52:17 +0200 Subject: [PATCH 1/2] Add PCRE Jit hint --- guides/hosting/performance/performance-tweaks.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guides/hosting/performance/performance-tweaks.md b/guides/hosting/performance/performance-tweaks.md index f42900ff6..906b2e834 100644 --- a/guides/hosting/performance/performance-tweaks.md +++ b/guides/hosting/performance/performance-tweaks.md @@ -166,6 +166,8 @@ zend.detect_unicode=0 realpath_cache_ttl=3600 ``` +Also PHP PCRE Jit Target should be enabled, this can checked using `php -i | grep 'PCRE JIT Target'` or looking into phpinfo page. + For an additional 2-5% performance improvement, it is possible to provide a preload file to opcache. Preload also brings a lot of drawbacks: - Each cache clear requires a PHP-FPM restart From 1cf59b2f2eb460827476b6d1121b9c718ee43e5e Mon Sep 17 00:00:00 2001 From: Christian Rades Date: Fri, 17 Jun 2022 10:22:54 +0200 Subject: [PATCH 2/2] Update guides/hosting/performance/performance-tweaks.md --- guides/hosting/performance/performance-tweaks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/hosting/performance/performance-tweaks.md b/guides/hosting/performance/performance-tweaks.md index 906b2e834..cf623254d 100644 --- a/guides/hosting/performance/performance-tweaks.md +++ b/guides/hosting/performance/performance-tweaks.md @@ -166,7 +166,7 @@ zend.detect_unicode=0 realpath_cache_ttl=3600 ``` -Also PHP PCRE Jit Target should be enabled, this can checked using `php -i | grep 'PCRE JIT Target'` or looking into phpinfo page. +Also PHP PCRE Jit Target should be enabled, this can checked using `php -i | grep 'PCRE JIT Target'` or looking into the phpinfo page. For an additional 2-5% performance improvement, it is possible to provide a preload file to opcache. Preload also brings a lot of drawbacks: