Repository navigation
feat!: replace snapshots with element replay - #171
Merged
Merged
Conversation
This comment was marked as duplicate.
This comment was marked as duplicate.
commit: |
|
Size Increased — +0.2 KB 132.6 KB unpacked |
Contributor
Merging this PR will not alter performance1 warning
Performance Changes
Comparing |
cowboyd
force-pushed
the
feat/element-replay
branch
2 times, most recently
from
December 1, 2026 02:30
4fabb9f to
b44bd3f
Compare
cowboyd
force-pushed
the
feat/element-replay
branch
from
December 1, 2026 02:34
b44bd3f to
4ef220f
Compare
cowboyd
force-pushed
the
feat/element-replay
branch
from
December 1, 2026 02:37
4ef220f to
b5baf57
Compare
cowboyd
force-pushed
the
feat/element-replay
branch
from
December 1, 2026 02:45
b5baf57 to
9672e33
Compare
cowboyd
marked this pull request as ready for review
December 1, 2026 02:46
natemoo-re
approved these changes
Dec 1, 2026
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.
What does this PR do?
Adds
result.info.get(id).replayas a substitute for an entire rendered element, including its descendants. Hosts can reuse its packed directives without rebuilding or repacking the subtree. Layout, pointer handling, caret placement, and transitions still run in the new render context.Removes
snapshot(). Obtain a fresh replay after each completed render;update()and rejected renders preserve existing replays. The optionalvalidated(term)wrapper rejects expired replays and unbalanced open/close directives.Assembly walks the incoming buffer once, copying fresh spans and referenced spans from the previous frame into the current runlist before execution. Element metadata remains lazy.
The renderer spec (§8.3.4) defines this feature's scope and behavior, so no separate issue is needed.
Type of change
Validation
deno task testpasses all 29 suites / 417 test steps.deno task verify,deno lint, anddeno task build:npm 0.0.0-verify.0pass.Checklist
deno task test)deno task fmt)AI-generated code disclosure