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

Pre-compile regexps #338

Merged
merged 1 commit into from
May 2, 2024
Merged

Pre-compile regexps #338

merged 1 commit into from
May 2, 2024

Conversation

olejorgenb
Copy link
Contributor

@olejorgenb olejorgenb commented Apr 25, 2024

Note: This is untested and I don't have time/energy to do any more on this, so if no one wants to wrap it up, feel free to close it.

Noticed this while profiling ics-py which felt really slow (even considering large ics files and it being python).

Would speed up https://github.com/ics-py/ics-py 3% ~7% so not that much, but maybe worth a few line changes.

image (the 4 first call-sites are related to the comment regexs)

(github refuse to upload the py-spy profile..)

@apalala apalala merged commit 62e2597 into neogeny:master May 2, 2024
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants