Comparing Python Diff Libraries

2021-11-03

I’m comparing the performance here between the difflib that’s part of Python and diff_match_patch that’s from Google. I was interested in extracting the word(s) that have been changed between two strings. I started out by using difflib but found that it did weird things with some sequences. But I found those problems then were resolved when using diff-match-patch. I go through some examples here.

Read More