Comment by winphone1974 5 years ago The key is used by the shadow Dom for update performance; the is no shadow Dom in svelte 5 comments winphone1974 Reply alserio 5 years ago List diffing is done even in svelte at runtime. Keys are used the same way as any other frameworks or frontend libraries, virtual DOM or reactive. afavour 5 years ago And yet Svelte is faster than React in pretty much every benchmark I’ve seen. patrickthebold 5 years ago That makes sense though right? One would assume that shadow dom and dom would be slower than direct dom manipulation. thinkloop 5 years ago 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. 1 reply →
alserio 5 years ago List diffing is done even in svelte at runtime. Keys are used the same way as any other frameworks or frontend libraries, virtual DOM or reactive.
afavour 5 years ago And yet Svelte is faster than React in pretty much every benchmark I’ve seen. patrickthebold 5 years ago That makes sense though right? One would assume that shadow dom and dom would be slower than direct dom manipulation. thinkloop 5 years ago 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. 1 reply →
patrickthebold 5 years ago That makes sense though right? One would assume that shadow dom and dom would be slower than direct dom manipulation. thinkloop 5 years ago 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. 1 reply →
thinkloop 5 years ago 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. 1 reply →
List diffing is done even in svelte at runtime. Keys are used the same way as any other frameworks or frontend libraries, virtual DOM or reactive.
And yet Svelte is faster than React in pretty much every benchmark I’ve seen.
That makes sense though right? One would assume that shadow dom and dom would be slower than direct dom manipulation.
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.
1 reply →