-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimize: regex: improved heuristic enabling the PCRE MAP_JIT workaro…
…und. This is a follow up to d046562 which improves the heuristics to decide whether PCRE JIT compilation should be disabled in init phase under macOS or not. The heuristics now are: - If under macOS - If using PCRE 8.43 or greater - Then PCRE JIT compilation will be disabled in the init phase While PCRE JIT compilation is disabled as such, a notice log will notify users attempting to use the `j` or `o` flags. Once past the init phase, we revert the workaround and allow for the `j` and `o` flags to be used, without any branching or additional performance penalty. New tests and minor refactorings have been included as well.
- Loading branch information
1 parent
feaffc1
commit f45c32e
Showing
2 changed files
with
172 additions
and
33 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