3 ms·
> There's no performance improvements like memoization or a VDOM. VDOM is only a performance improvement if you already bought into a specific version of the r
by brabel 6y ago
> There's no performance improvements like memoization or a VDOM.
VDOM is only a performance improvement if you already bought into a specific version of the reactive architecture (namely, the declarative one, pioneered by Elm and popularized by React).
Otherwise VDOM is an overhead both in performance and in complexity.
Svelte has shown it's possible to do away with that overhead and still keep a nice, declarative API (which is much faster than any VDOM-based solution as it doesn't pay the cost of having a mirror of the DOM in memory + having to run a diff algorithm on every change).
Older frameworks also were able to get by with no VDOM by manually binding different parts of the DOM, which can be done well, but admittedly may result in difficult-to-read code.