Skip to content

bpo-45462: Speed up re.match with pre-compiled pattern #28936

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

Closed
wants to merge 1 commit into from

Conversation

jonashaag
Copy link
Contributor

@jonashaag jonashaag commented Oct 13, 2021

Implements the speedup and also extends the tests so as to explicitly cover the if flags check for both RegexFlag and raw integer values.

https://bugs.python.org/issue45462

@sweeneyde
Copy link
Member

Do you have any benchmarks of a speed difference, perhaps using pyperf?

@jonashaag jonashaag closed this Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants