Run-length encode scope-ref lists and repeated fills in the resume payload - #3352
Open
DylanPiercey wants to merge 1 commit into
Open
Run-length encode scope-ref lists and repeated fills in the resume payload#3352DylanPiercey wants to merge 1 commit into
DylanPiercey wants to merge 1 commit into
Conversation
🦋 Changeset detectedLatest commit: 6fd8bd0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3352 +/- ##
==========================================
- Coverage 94.29% 94.29% -0.01%
==========================================
Files 388 388
Lines 53085 53180 +95
Branches 4237 4246 +9
==========================================
+ Hits 50058 50147 +89
- Misses 2998 3003 +5
- Partials 29 30 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Description
Loop-heavy pages serialize O(n) bookkeeping per iteration: branch-scope lists (
[_(2),_(3),…,_(201)]), closure subscriber sets, and identical per-branch fills ({_:_(1)}repeated). Branch scope ids allocate contiguously, so these are arithmetic runs:_.s(from,count[,step])(≥3 items).{_:_(1)},-199), which the resume runtime expands into per-scope copies. Collapse is purely textual and post-hoc — refs/channel side effects already ran — and is disqualified whenever a fill writes anything identity- or position-sensitive (newly tracked objects, scope-bound registered calls), so distinct-but-equal objects are never aliased.Measured on a 200-item
<for>reading a parent<let>, the resume script drops from ~5.6 KB to roughly constant size for the bookkeeping portion. The decoder additions cost ~150 B min in the shared runtime.Checklist:
Generated by Claude Code