mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-17 05:32:41 +00:00
word_diff_center filled an (m+1)*(n+1) table of ints for the differing middle of every changed line pair. For a 100 KB line of minified JavaScript with a word inserted near each end that is 2.6 GB and over two seconds, and compute_centers runs the line pairs in parallel. Changed words are only highlighted when they pair up by position, which needs the same number of words on both sides, so return changed_center right away when the counts differ. The output is the same as before in that case. Lines with equal word counts but more than 2048 words between the first and last changed word now get the central highlight too instead of a huge table, and the table uses int32. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| collect.go | ||
| collect_test.go | ||
| diff.go | ||
| highlight.go | ||
| main.go | ||
| main.py | ||
| mouse.go | ||
| patch.go | ||
| patch_test.go | ||
| render.go | ||
| search.go | ||
| ui.go | ||