News for hackers. Stuff that matters.
Re:Virtual DOM is pure overhead (2018) by spankalee on Saturday May 18, 2019 @10:48PM (#19951127)
> 1. Changes to the DOM cost a ton more than executing JS code.

The point of the article, and of the performance problems that people actually have with React is that this might be true for a small number of JS operations, but that

1) Tree diffs are computationally complex operations that add up for real-sized apps 2) The diff is actually unnecessary if you simply take into account the structure of templates, so diffs are pure overhead.

So _do_ feel bad when you have a no-op render() in React at least, because the resulting VDOM diff just chewed up CPU and battery for no reason.

There are no comments on this comment yet.