top | item 34739259

(no title)

larsonnn | 3 years ago

I wouldn’t call it a new thing. We began without virtual DOM and then Facebook sold us the vDOM as the ultimate way to go. Which svelte clearly shows, by removing the unnecessary layer for the vdom it’s much faster and is still reactive.

discuss

order

richeyryan|3 years ago

Or there is Inferno which is VDOM based and outperforms Svelte on most benchmarks. The whole narrative of "VDOM is pure overhead" doesn't hold out in practice, and I suspect really just an excuse to attack React and promote Svelte.

https://krausest.github.io/js-framework-benchmark/2023/table...

vlovich123|3 years ago

Outperforms? Solid, svelte and inferno all look to have very similar numbers in that table unless I’m terribly misreading it. So similar, that I think which way it goes is possibly more dependent on your benchmark environment than any difference between them.

antifa|3 years ago

According to that, solid won in the majority of metrics. And what about build size?

szastamasta|3 years ago

They did this while introducing a lot of compiler magic and automatic dependency discovery that not always works. I’m not sure I’m sold on it. Code you write is not code you execute.

romualdr|3 years ago

You're correct, it's not new.

Still, the question remains, what's the improvement over Svelte or SolidJS which doesn't use VDOM as well ?

nailer|3 years ago

Solid too. But yes Svelte seems to have been the current thing for a few years now.

ergo14|3 years ago

Lit also does fine without VDOM and has good performance characteristics.