| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,5 @@ | ||||||||||
| Add checking if sequences ``a[alo:ahi]`` and ``b[blo:bhi]`` are the same on the | ||||||||||
| beginning of the method find_longest_match in SequenceMatcher. For identical | ||||||||||
| sequences there is no reason to run whole logic when simple check can be done. | ||||||||||
|
Comment thread
Comment on lines
+1
to
+3
Copy link
Copy Markdown
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityThis NEWS should be summarized. I suggest something like (assumiong that the method is documented, if not use a plain Add a fast path in :meth:`SequenceMatcher.find_longest_match
<difflib.SequenceMatcher.find_longest_match>` to handle the
case when ``a[alo:ahi] == b[blo:bhi]``.
Sorry, something went wrong.
jurgenwigg reacted with thumbs up emoji
All reactions
|
||||||||||
| It appears to fix issue when comparing two slightly different strings ends up | ||||||||||
| with waiting forever for the result. | ||||||||||
|
Comment thread
Comment on lines
+4
to
+5
Copy link
Copy Markdown
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
We should be more confident here. Does it fix the issue or not? if so, let's say it. Otherwise, let's not give tentative conclusions.
Sorry, something went wrong.
jurgenwigg reacted with thumbs up emoji
All reactions
|
||||||||||
| Back | FazBrowse Home | New Git URL |
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.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityIs this covered in tests? if not, please add a test, otherwise no need to add a large one.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.