SIGN IN SIGN UP

gh-119105: difflib: improve recursion for degenerate cases (#119131)

Code from https://github.com/pulkin, in PR
https://github.com/python/cpython/pull/119131

Greatly speeds `Differ` when there are many identically scoring pairs, by splitting the recursion near the inputs' midpoints instead of degenerating (as now) into just peeling off the first two lines.

Co-authored-by: Tim Peters <tim.peters@gmail.com>
P
pulkin committed
0abf997e75bd3a8b76d920d33cc64d5e6c2d380f
Parent: 3c28510
Committed by GitHub <noreply@github.com> on 5/19/2024, 9:46:37 PM