r all browsers. For example, in some implementations, reading <code>childNodes.length</code> has a complexity of O(n); in some, reading <code>parentNode</code> causes a repaint, etc.</p>
<p>In contrast, traversing a JavaScript data structure has a much more predictable and sane performance profile, and in addition, a vnode tree is implemented in such a way that enables modern JavaScript engines to apply aggressive optimizations such as hidden classes for even better performance.</p>
<hr>
<h3 id="differences