3 ms·
writing to the DOM is slow, you use VDOM to batch updates and other optimizations
by eldenring 4y ago
writing to the DOM is slow, you use VDOM to batch updates and other optimizations
- megous 4y agoNo it's not. It's pretty close to browser's native HTML parsing speed. And VDOM just writes to the DOM in addition to doing a lot of other throwaway work and allocations. Reading from DOM may be slow, if you read one of the properties that would trigger layout/style calculactions.