Perf: echo overflowable native-long via local stack box (#36386) - #37064
Merged
Conversation
This was referenced Sep 6, 2026
PurHur
added a commit
that referenced
this pull request
Sep 6, 2026
) (#37068) extractAsCString fell through TYPE_VALUE to a constant empty C string after lazy ±/×/`/` materialize; type-switch boxed args and overflow flag+f64 slots instead (peer of #37064 echo). Free only the selected arm buffer via phi. Co-authored-by: PurHur <PurHur@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
{main}echo $safter lazy ±/×//materialize printed empty whileprint/var_dumpmatched Zend — leftover of Perf: lazy f64 overflow slot for native-long ±/× (#36386) #37051.TYPE_VALUEstack bindings overechoScriptGlobalName(peer of Runtime: string-key arrays are still super-linear after the DJB index — 5k keys 0.13 s, 20k keys 2.4 s, 100k keys > 120 s (Zend 0.03–0.09 s); theisset/read path or the index growth is not O(1) (lib/JIT/Builtin/Type/HashTable.php) (re-#36191) #36408/AOT: program-shaped differential corpus is 1/30 vs Zend (crashes/compile aborts) — child of #36221 #36366).php-src:
Zend/zend_vm_def.hZEND_ECHO.Part of #36386.
Test plan
./script/phpunit.sh --filter EchoOverflowableNativeLongAotTest→ 3/3./script/aot-smoke.sh→ 9/9 + size gate OKmake north-star5-verify-fast→ OK (spine 8348/8348)script/differential-sweep.sh --aot --repeat 3 --dir /tmp/diff-echo-ov→ 3/3Made with Cursor