-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
bpo-41972: Use the "Two-Way" algorithm when searching for long substrings #22679
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
899f289
initial implementation
sweeneyde 743a382
refactoring
sweeneyde fdb6800
formatting fixes
sweeneyde 737ac8a
add shift and bloom
sweeneyde 658038d
📜🤖 Added by blurb_it.
blurb-it[bot] b62e4c6
add alternating find_char calls
sweeneyde 25a61fb
USe a shift table
sweeneyde 64b9a0a
compute a shift for the last character
sweeneyde 5568ca2
Remove unnecessary special case
sweeneyde f2054e0
Merge branch 'two-way' of https://github.com/sweeneyde/cpython into t…
sweeneyde 415f492
removed unneeded shift computation
sweeneyde 06c3678
restore original code with special case for long needles
sweeneyde 89bdc34
Minor code cleanups
sweeneyde 9d7bbc3
Restore comment and fix typo
sweeneyde c331307
Update 2020-10-12-23-46-49.bpo-41972.0pHodE.rst
sweeneyde 66377ce
Add test cases catered to the new algorithm
sweeneyde e718e5a
Merge branch 'two-way' of https://github.com/sweeneyde/cpython into t…
sweeneyde cf4e398
Fix typo
sweeneyde 3933992
add a cutoff for haystack length
sweeneyde c8e54c6
simplify a couple of lines
sweeneyde 8208853
Add better threshholds
sweeneyde File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
initial implementation
- Loading branch information
commit 899f2894c22575f12c80081aae8959af5e8ada2e
There are no 8000 files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.