Repository navigation
perf: retain integer Array loops and avoid short-string buffers - #100
Merged
Merged
Conversation
- Guard actual Array loop inputs and admit boxed int32 payloads directly. - Resume Number bodies from saved state without replaying committed stores. - Retain mask and signed-shift bounds for multiplication and cover BigInt fallbacks. - Validate focused compiler/native checks and seven matched am3 pairs.
- Require another rope link before starting a shared append buffer. - Preserve small-append startup and exercise widening after buffer admission. - Verify UBSan parity and GC stress, type-check and lint; seven matched Splay pairs improve 25.3%.
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.
Numeric Array loops repeatedly box integer state, while short concatenation chains allocate append buffers before they need them. Keep checked integer locals across Array iterations with a floating fallback, and start shared string buffers only after the rope chain continues.
Validation: 264 focused compiler checks, targeted UBSan native/backend/GC-stress coverage, string append parity under UBSan and GC stress, type-check and lint pass. Every canonical CI lane passed on preceding checkpoint 26d53d2; this head needs its own CI result. Benchmark baselines remain unchanged.