crysalead-js / dom-layer

Virtual DOM implementation.
MIT License
30 stars 1 forks source link

improve patching #37

Closed ghost closed 9 years ago

ghost commented 9 years ago

Read this post:https://www.bountysource.com/issues/10834294-smarter-redrawing-diff-a-tree-of-values-rather-than-a-tree-of-virtual-dom

jails commented 9 years ago

The dom-layer only provides necessary building blocks (i.e. mount()/unmount()/update()) to split things in subtrees. It's up to a higher level of abstration to attach to each components a dedicated subtree and only perform updates for components which are actually "dirty".