Skip to content

Conversation

@ealmloff
Copy link
Member

@ealmloff ealmloff commented Apr 1, 2024

This PR changes the placeholder and empty nodes in core to reuse the same Rc<NodeInner> for every instance per thread. NodeInner is completely immutable, so using the same instance for every VNode will not effect behavior

@ealmloff ealmloff added core relating to the core implementation of the virtualdom performance labels Apr 1, 2024
@ealmloff ealmloff marked this pull request as draft April 1, 2024 18:47
@ealmloff ealmloff marked this pull request as ready for review April 1, 2024 18:50
@jkelleyrtp jkelleyrtp merged commit c8140c7 into DioxusLabs:main Apr 2, 2024
@ealmloff ealmloff deleted the re-use-placeholder-node branch April 2, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core relating to the core implementation of the virtualdom performance

2 participants