4 ms·
The fastest DOM update libraries in the benchmarks I've seen eschew the vDOM entirely. See domdiff for instance.
by naasking 5y ago
The fastest DOM update libraries in the benchmarks I've seen eschew the vDOM entirely. See domdiff for instance.
- nine_k 5y agoOne may not need to build an entire tree and then compare to another tree; the generation and comparison may go hand in hand to avoid building an actual vDOM. It's DOM diffing anyway. It's still the "track and update dirty regions" logic of 8-bit game consoles, instead of the "redraw the whole screen from scratch" logic of modern game engines. DOM is not performant enough, and likely will never be, in its current shape. Merging the vDOM-less transactional DOM update logic into the DOM standard could be nice, though.