gh-145131: difflib.Differ._fancy_replace performance (re-use ratio)#145133
gh-145131: difflib.Differ._fancy_replace performance (re-use ratio)#145133tim-one merged 1 commit intopython:mainfrom
Conversation
tim-one
left a comment
There was a problem hiding this comment.
I'll merge it, but reluctantly. It damages readability a little for very little gain. The matching blocks were already computed and cached for reuse on the first call to cr(), so it saves very little time.- just saves summing the lengths of the already-computed matching blocks between two lines. Why bother? It's not worth it to me, but damages readability so little I won't argue about it. So, thanks - I guess 😉.
|
Uh oh!
There was an error while loading. Please reload this page.