diff-renderer
diff-renderer copied to clipboard
Optimize inserts
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.