Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-119105: difflib.py Differ.compare is too slow [for degenerate cases]#119376

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tim-one merged 5 commits intopython:mainfromtim-one:differ
May 22, 2024

Conversation

@tim-one
Copy link
Member

@tim-onetim-one commentedMay 22, 2024
edited by bedevere-appbot
Loading

A different approach, tracking all ascending index pairs achieving the best ratio. None of them needs recursion then. And, more importantly, it restores difflib's general "top to bottom" ordering of matches.

@tim-onetim-one merged commit07df93d intopython:mainMay 22, 2024
@tim-onetim-one deleted the differ branchMay 22, 2024 23:25
estyxx pushed a commit to estyxx/cpython that referenced this pull requestJul 17, 2024
…e cases] (python#119376)Track all pairs achieving the best ratio in Differ(). This repairs the "very deep recursion and cubic time" bad cases in a way that preserves previous output.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

@tim-onetim-one

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

difflib.py Differ.compare is too slow [for degenerate cases]

1 participant

@tim-one

[8]ページ先頭

©2009-2025 Movatter.jp