Skip to content

Commit 2ff4dfe

Browse files
committed
[fdiff.thirdparty.fdifflib] add modifications documentation
addresses the need for this in the Python license
1 parent b014e32 commit 2ff4dfe

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/fdiff/thirdparty/fdifflib.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@
2626
For producing HTML side by side comparison with change highlights.
2727
"""
2828

29+
# fdifflib is a derivative of the Python v3.7.4 difflib.py library.
30+
# It includes the following modifications to the upstream source file:
31+
#
32+
# - change the `SequenceMatcher.__chain_b` autojunk heuristic to make
33+
# it adapt the "popular" string definition to file size. These
34+
# definitions were made more permissive (i.e., includes more
35+
# strings as "popular" for larger file sizes. This leads to a
36+
# significant performance increase in the setting of text diffs
37+
# of TTX dumps of font binaries that tend to be in the 10k-100k
38+
# lines of text
39+
# - black tool source formatting
40+
2941
__all__ = [
3042
"get_close_matches",
3143
"ndiff",

0 commit comments

Comments
 (0)