-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-119105: difflib: improve recursion for degenerate cases #119131
Conversation
You may have noticed that it's bugging you for a NEWS entry. Easiest is to click "Details" on the failing "bedevere/news" check, That will bring up a web page that asks you for the GitHub issue number, PR number, which part of the distribution is affected ("library", here), and type some text explaining the change at a high (user-oriented) level. When that's done, submit the page, and it will magically generate a new file with a crazy name, and commit it to this branch in the |
Co-authored-by: Tim Peters <tim.peters@gmail.com>
Misc/NEWS.d/next/Library/2024-05-19-12-25-36.gh-issue-119105.VcR4ig.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Tim Peters <tim.peters@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to go! It's been a pleasure working with you - I hope you stick around 😄.
BTW, I'm not sure whether it will let you "squash and merge" the change. If not, let me know and I'll do the commit. |
Just letting you know that I am fine with the merge. I am not allowed to merge. Thanks for the guidance and discussion btw. |
All done! You're an official Python Committer™ now. Use your power only for good 😉 |
|
|
I believe the buildbot failures are spurious "false positives" for this PR. One is failing a threading test, and the other sqlite3. |
…hon#119131) Code from https://github.com/pulkin, in PR python#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>
Used this as a benchmark: