Comment by raphaelj
9 hours ago
Why does he need to manually do the tracing or reference counting of all these nodes?
Instead, he could just use the references he needs in the new tree, delete/override the old tree's root node, and expect the Javascript GC to discard all the nodes that are now referenced.
No comments yet
Contribute on Hacker News ↗