[php-src] PR #22287: TSRM: make CG, EG, SCNG and AG compile-time offsets

From: Date: Fri, 12 Jun 2026 09:09:37 +0000
Subject: [php-src] PR #22287: TSRM: make CG, EG, SCNG and AG compile-time offsets
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36381@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22287 Author: henderkes saves an offset load every time they're accessed fifth split from https://github.com/php/php-src/pull/22231 a bit of a different approach (keep everything on the existing heap allocations, just reordered) so we don't need to work around the apache module tls surplus problem and don't need to fall back to global-exec it's not the entire gain of the other PR, but still something. measurements without the local-exec or -mtls-size change (which will benefit on top, together they restore around half the ZTS penalty over NTS): <table><thead><tr><th>build</th><th>PHPStan instr</th><th>PHPStan wall</th><th>phpbench (no JIT)</th><th>phpbench (JIT)</th></tr></thead><tbody> <tr><td>NTS (base)</td><td>840.5827 B</td><td>68.6s</td><td>709168</td><td>1179326</td></tr> <tr><td>ZTS before (gcc)</td><td>881.9715 B</td><td>68.0s</td><td>669379</td><td>1130824</td></tr> <tr><td>ZTS after (gcc)</td><td>863.8799 B (−2.051%)</td><td>66.7s (−1.912%)</td><td>680468 (+1.66%)</td><td>1135553 (+0.42%)</td></tr> <tr><td>NTS (base)</td><td>846.6887 B</td><td>65.7s</td><td>705634</td><td>1141506</td></tr> <tr><td>ZTS before (clang)</td><td>898.4707 B</td><td>68.4s</td><td>670086</td><td>1089468</td></tr> <tr><td>ZTS after (clang)</td><td>870.6615 B (−3.095%)</td><td>67.2s (−1.754%)</td><td>686443 (+2.44%)</td><td>1095468 (+0.55%)</td></tr> </tbody></table>

« previous php.git-pulls (#36381) next »