Link/cut tree for internal DomSlot for faster traversal - #4189
Draft
WorldSEnder wants to merge 14 commits into
Draft
Link/cut tree for internal DomSlot for faster traversal#4189WorldSEnder wants to merge 14 commits into
WorldSEnder wants to merge 14 commits into
Conversation
|
Visit the preview URL for this PR (updated for commit db88af9): https://yew-rs-api--pr4189-cut-link-dom-positio-xkfeilrl.web.app (expires Thu, 30 Jul 2026 19:15:16 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
Benchmark - coreYew MasterPull Request |
Benchmark - SSRYew MasterDetails
Pull RequestDetails
|
This prepares a change in the structure to a link/cut tree. We want clear ownership rules, where each DynamicDomSlot owns an internal node, the clones are only handles for it, but should not keep the slot alive.
WorldSEnder
force-pushed
the
cut-link-dom-position
branch
from
July 22, 2026 10:38
d94d1b5 to
7e99014
Compare
Size ComparisonDetails
|
ty clippy
Member
Author
|
@Madoshakalaka the cut tree forest impl is a bit dense. Apart from that, I am not so sure the code size costs are worth the performance. It should definitely save a bit of time in deeply nested things and I want to perf check this before a final judgement too. Thoughts? |
Member
|
wut, will have a look tomorrow! |
Member
Author
|
Removing the slab and going back to |
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
This prepares a change in the structure to a link/cut tree. We want clear ownership rules, where each DynamicDomSlot owns an internal node, the clones are only handles for it, but should not keep the slot alive.
Checklist