forked from rust-lang/regex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reintroduce the reverse suffix literal optimization.
It's too good to pass up. This time, we avoid quadratic behavior with a simple work-around: we limit the amount of reverse searching we do after having found a literal match. If the reverse search ends at the beginning of its search text (whether a match or not), then we stop the reverse suffix optimization and fall back to the standard forward search. This reverts commit 50d991e. # Conflicts: # src/exec.rs
- Loading branch information
1 parent
9fc0ac8
commit 14a8989
Showing
6 changed files
with
396 additions
and
188 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.