DEV Community

Discussion on: Why Virtual DOM?

Collapse
 
aidenybai profile image
Aiden Bai

For the benchmarks, there is a distinction between the "baseline" (or most optimized imperative score) and "vanilla" (or what developers naively do often when using vanilla.)

It can be easily argued that benchmarks generally have no basis in real world instances - and this is very true! Generally, you should take benchmarks with a grain of salt, which is why I provided some points where optimizations were performed. In my opinion, providing benchmarks is better than making an unsubstantiated claim of "it's just fast," whether you take the benchmarks as 100% accurate for your use case or not.

Collapse
 
grahamthedev profile image
GrahamTheDev

Good point, well made! It just always feels a little disingenuous when in a graph form as it leads to the misnomer β€œthe virtual DOM is faster” and that gets touted about all the time! 😜

Thread Thread
 
aidenybai profile image
Aiden Bai

Thanks! Yeah, this may be my fault, I tried to bring as much nuance into the article as possible to communicate that there is more to it, but it's often difficult to get readers to understand. Generally, readers will just skim over and get the big ideas, which is an issue and proliferates the misnomer you brought up. Context always matters!