Re:Rich Harris joins Vercel to work on Svelte full time
by patrickthebold on Thursday November 11, 2021 @07:04PM
(#29194849)
That makes sense though right? One would assume that shadow dom and dom would be slower than direct dom manipulation.
[ Parent
| on HN ]
Re:Rich Harris joins Vercel to work on Svelte full time
by thinkloop on Thursday November 11, 2021 @11:20PM
(#29196269)
I'm not sure that's a fair assumption, one of the original sells of a shadow dom was that manipulting the dom directly is extremely slow, so doing as much work away from it is faster.
Re:Rich Harris joins Vercel to work on Svelte full time
by ttfkam on Sunday November 14, 2021 @05:20PM
(#29221274)
Because React's model requires tracking the entire DOM tree for changes and rewriting whole branches where a change is detected.
Svelte bypasses the whole problem for the most part. https://youtu.be/AdNJ3fydeao?t=247