Replies: 1 comment
-
Hey! It would be beneficial to set the entry to null in Remove. .remove just removes the node from the DOM, but doesn't clear the entry. In the VDOM, we use an intrusive arena that replaces dead slots as new elements are created. Old elements won't be freed until new elements are created that replace them in the Additionally, I couldn't see setting |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've been reading through the source to try and understand how things work, and I had a question while reading through the interpreter code.
As far as I can tell, nothing ever removes things from the
this.nodes
array. I did consider that SetNode might be used for that, but it doesn't look like it. Is this correct, and if so, would it be beneficial to add athis.nodes[root] = null
or similar in theRemove
edit implementation to free up memory?dioxus/packages/interpreter/src/interpreter.js
Lines 55 to 60 in d9e14db
Beta Was this translation helpful? Give feedback.
All reactions