-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use simple equality string matching when possible (#14)
The `compile_matcher` function now returns a `Callable`. This allows us to return one of two possible implementations: - `re.Pattern.fullmatch()` - `str.__eq__` This allows significantly faster compilation and matching for non-regex patterns.
- Loading branch information
Showing
3 changed files
with
99 additions
and
79 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
Oops, something went wrong.