News for hackers. Stuff that matters.
Re:Introduction to Svelte by shortercode on Friday August 16, 2019 @02:05AM (#20712554)
Last time I tried keeping a collection of simple DOM nodes to "recycle" my perf tests showed it was slower than just creating new nodes. So I wouldn't necessarily consider this an optimisation, although memory use might be better.
Re:Introduction to Svelte by hajile on Friday August 16, 2019 @09:02AM (#20714720)
It depends on how you recycle them I guess. One of Inferno's biggest optimizations (according to its creator) is the reuse of DOM nodes and vdom fragments. To my knowledge, it's still the fastest vdom implementation around.