Fast, Bump-Allocated Virtual Doms with Rust and Wasm
Both virtual DOM tree rendering and diffing in Dodrio leverage bump allocation. Therefore, we can double buffer two bump allocation arenas that switch back and forth between the roles of containing the new or the old virtual DOM tree:
Dodrio uses a naïve, single-pass algorithm to diff virtual DOM trees. Dodrio is a new virtual DOM library that is designed to leverage the strengths of both Wasm’s linear memory and Rust’s low-level control by making extensive use of fast bump allocation.
Source: hacks.mozilla.org