coco icon indicating copy to clipboard operation
coco copied to clipboard

Add DOM Patching

Open mrmiguu opened this issue 6 years ago • 2 comments

DOM currently renders from top to bottom without efficiently patching the diff of the incoming VDOM structure.

See gooact for an example of a minimal patching implementation.

mrmiguu avatar Feb 26 '19 06:02 mrmiguu

Basic DOM patching added: https://github.com/mrmiguu/coco/commit/9a415ce2a938ae94c4c6a89bc2dbd9ef0db776f7.

mrmiguu avatar Mar 10 '19 19:03 mrmiguu

Most likely linked to this.

https://github.com/sweetpalma/gooact/blob/4659085d4c1708c0538cf640dd6a05d7abb5142b/gooact.js#L75 This^ shows recursive per-element reconciling, setting attributes when the element is the same.

mrmiguu avatar Mar 12 '19 00:03 mrmiguu