[php-src] PR #22458: Relax optimizer/JIT cross-file boundary restriction for CLI
| From: | iluuu1994 | Date: | Thu, 25 Jun 2026 20:22:53 +0000 |
| Subject: | [php-src] PR #22458: Relax optimizer/JIT cross-file boundary restriction for CLI | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36647@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22458
Author: iluuu1994
In CLI (but not cli-server) it's safe to assume script structures are fully immutable, given
the structures will not be freed until the process ends. Hence, we can make stronger assumptions
during optimization and jitting. This may be beneficial for web servers implemented in PHP, or
worker mode.
In my tests, this shaves off roughly 0.5% off Symfony Demo with just opcache. and a bit less with
the tracing JIT. Function JIT improves by over 4%, but is overall still slower than the tracing JIT
after warmup.