-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release the GIL for
BytesAhoCorasick
when the haystack is bytes
In theory we should do that for every type that is guaranteed to be immutable, in order to improve performance, but there's no way to tell whether a type is immutable or not through the Buffer protocol, so we only do this as a special case for `bytes`. Fixes #94.
- Loading branch information
Isaac Garzon
committed
Jan 6, 2024
1 parent
ab9d0b3
commit 8994049
Showing
3 changed files
with
47 additions
and
12 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