Repository navigation
perf(lynx): compact sparse slot set runs - #418
Merged
Merged
Conversation
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
SET-RUN(first, stride, slot, values…)for consecutive equal-slot writes over an arithmetic instance sequenceAttribution and mechanism
The frozen M4 candidate's remaining Vue Vapor default blocker was
update10th@10000: candidate/comparator median ratio1.07997 [1.06721, 1.09195]. Owner evidence split the candidate cost across both realms: BTS CPU12.286 msvs5.361 ms, MTS CPU219.249 msvs224.839 ms, and MTS wire38,626vs35,226bytes.That workload emits 1,000 consecutive writes to the same compiled row slot with an instance stride of 10. This change represents that exact sequence as one SET-RUN instead of 1,000 independently framed SET operations. Non-consecutive, mixed-slot, descending, and runs shorter than three retain the prior representation; the producer's no-hit path returns the original operation array without an extra copy.
Production evidence
Baseline: merged
new-lynx@f3e33a7a6dad78ada5ee4277f85f4b26255cd48fCandidate:
5826addaf73e820c43b98359e152bdb6998cf5d5Production bundle identities rebuilt from the committed source:
ec8a9e19bfe12cc5930654f9d590bceb7dc8209b429ef16eb93829c1567455aa51cc3ac6b5ab9ab4fd97058cd9f2550b2353eba3b825fed261fc995e9523263f(+0.50%)d67c9b5df350cb541d09f250d0d28d57325e571c2b81df88e50cd64b551d92981f3e473a4f5f501406f62c93bf0ffe7088e796ae7edfb5e3acea878d18c026e1(+0.50%)Two independent 20-repetition production Web AB/BA windows on
update10th@10000, zero DNF/failure and no outlier deletion:Raw screening run SHA-256 values:
809e9302d46b4306361b8870780159278b012cd5e410665ea70e5a906cede709a608c28bda1d5d131fe435929dca345690fbdbf661a1580e48923edecdb0503aDirect same-window Vue Vapor default screening crossed the prior failing wall cell in both orders:
0.99408×and0.99967×, geometric ratio0.99687×; MTS CPU was0.94480×and MTS bytes0.77392×. This is not promoted to formal #291 acceptance: the merged SHA still needs the predeclared 40-session / 800-sample-per-arm median+p95 replication. Costs also remain explicit: BTS CPU was2.049×, BTS bytes1.629×, and BTS messages1.333×versus Vapor.Direct-comparator raw screening SHA-256 values:
64b0199b446795514b352d9ccfc899e9c8e652dc535bb52a4c7a745ca13c8974851a01b0bd851ecd3617b2d1242deead7cb38ec51779dced7cf76d9e0cbc7ac8The raw run files and immutable merged-head artifact will be preserved in Huxpro/lynx-js-framework-benchmark#73 before formal qualification; the numbers above are source-branch screening only.
Validation
pnpm syncpnpm format:files:check(changed files)pnpm typecheck:files(changed implementation/tests)packages/lynx/tests: 78 files / 1,187 tests passedgit diff --checkPart of #291.
Provenance
agent-authored)Adds an arithmetic SET-RUN delta opcode that removes repeated sparse-list update framing, cutting the remaining 10k update wall time by 6.9%, BTS CPU by 11.7%, MTS CPU by 3.8%, and MTS wire bytes by 29.4% in balanced production screening while preserving rollback and worklet ownership.