Skip to content

Commit

Permalink
enable JIT for PHP
Browse files Browse the repository at this point in the history
It gave me a 30% page generation time decrease on the production project (1.0s -> 0.7s).

Won't enable when XDebug is enabled; JIT settings will be ignored then.

Articles about JIT: https://medium.com/@edouard.courty/make-your-php-8-apps-twice-as-fast-opcache-jit-8d3542276595, https://stitcher.io/blog/php-8-jit-setup
  • Loading branch information
paskal committed Jul 25, 2023
1 parent e556b84 commit 671ef00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/php/90-php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ session.gc_maxlifetime = 10800
session.cookie_lifetime = 14400

[opcache]
opcache.jit=1255
opcache.jit_buffer_size=512M
opcache.revalidate_freq = 0
opcache.validate_timestamps = 1
opcache.max_accelerated_files = 100000
Expand Down

0 comments on commit 671ef00

Please sign in to comment.