Full threadBuetol·I also researched the best diff algorithm. Google's diff-match-patch [1] library produce very good diffs for example. But I found that the best diffs are produced by wikidiff2 [2], the MediaWiki diff engine. Both engines produce word-by-word diff.[1]: https://github.com/google/diff-match-patch[2]: https://www.mediawiki.org/wiki/Wikidiff2View on HN