Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-31580 - deferred compilation of regular expressions #3755

wants to merge 6 commits into from


None yet
4 participants
Copy link

commented Sep 26, 2017

This implements deferred compilation of regular expressions, which can appear often as module globals. The hope is that this can shave time off of application start up time. See the bpo issue for further discussion.

warsaw added some commits Sep 25, 2017

Update the test suite.
* Safely use LRU cache for compiled patterns.
* Make sure repr(), hash(),  ==, != "instantiate" the compiled rexex
* inline flag 'n' == the re.IMMEDIATE flag

This comment has been minimized.

Copy link
Member Author

commented Sep 27, 2017

I've updated the branch to include a compile_od() function, but I think for now I am going to abandon this experiment. I'm not convinced that adding another function will provide enough of a win for the ecosystem, even if it does turn out to improve start up time.

@warsaw warsaw closed this Sep 27, 2017

@Mariatta Mariatta removed the awaiting merge label Oct 8, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.