Repository navigation
Conversation
Batch bounded ASCII runs and avoid JSON serialization and descriptor allocation for finite numbers and own-property checks. This reduces large-clear undo by 7.16% outside the 4.62% A/A band, while CSV import and packed admission remain within 1%.
Owner
Author
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.
Scope
A regression check of 0.5.0 against 0.4.x, plus one measured core optimization. Part of #59. Stacked on #72 (base
bench/evidence-protocol).Regression check
Matched 10-round render capture on the current harness,
7f73dc7(0.5.0 stack) againstfac48bd(0.4.x). The committed render baseline could not be used: it pins older harness sources and an older runner, and #72 re-records it in the release capture.arrow-right.middle(+5.8%, 99% lower bound +0.004 ms), did not reproduce in a 10-round attribution run at ≥250 ms per sample (+1.5% against an A/A spread of −7.0% to +5.7%). Rolling back the row-number clipping fix (b54b29a) did not change it.edit-open+3.0% to +11%,edit-commit+9.1%.scroll-right−14.7%,altering.remove-5-rows−9.5%.Change
perf(core): JSON byte accounting (transaction admission) counts plain ASCII runs together, sizes finite numbers withString()instead ofJSON.stringify, and checks owntoJSONwithObject.hasOwn. Byte counts, limits, and invalid-input errors are unchanged.setBlockadmission (untouched)A/A control: 9 rounds, noise band ±4.6%. ABBA: 9 rounds; every round improved by 5.3%–9.3%. Outputs are identical. A faster XLSX attribute scanner was rejected (−1.7%, inside noise).
Verification
docs:check,api:check, typecheck, lint pass; packages 869 pass / 6 skip / 0 fail; Rust 147 / 223 pass.