Why Incremental DOM Has Low Memory Footprint?

Technology CommunityCategory: AngularWhy Incremental DOM Has Low Memory Footprint?
VietMX Staff asked 3 years ago

Virtual DOM creates a whole tree from scratch every time you rerender.

Incremental DOM, on the other hand, doesn’t need any memory to rerender the view if it doesn’t change the DOM. We only have to allocate the memory when the DOM nodes are added or removed. And the size of the allocation is proportional to the size of the DOM change.