diff-renderer icon indicating copy to clipboard operation
diff-renderer copied to clipboard

Optimize inserts

Open kof opened this issue 10 years ago • 0 comments

When insert a node at the beginning, it causes modifications to all downstream nodes. This needs to be optimized.

  • [ ] add hash to snapshot nodes
  • [ ] save hashes in Node instance and use in toJSON
  • [ ] reorder nodes based on hashes so that untouched nodes get into the new place and docdiff doesn't thing everything has changed.

kof avatar Jul 26 '14 15:07 kof