-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace the slow loop in Teddy with Aho-Corasick.
This can have a significant impact on performance when the match rate is low (common) and the number of patterns is high (e.g., for a case insensitive search).
- Loading branch information
1 parent
12cb63b
commit 3239782
Showing
1 changed file
with
12 additions
and
35 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