d by Javascript engines for near-native data structure access performance. In addition, Mithril aggressively optimizes the function that creates vnodes as well.</p>
<p>The reason Mithril goes to such great lengths to support a rendering model that recreates the entire virtual DOM tree on every render is to provide <a href="https://en.wikipedia.org/wiki/Retained_mode">retained mode rendering</a>, a style of rendering that makes it drastically easier to manage UI complexity.</p>
<p>To illustrate why retained 