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

Precompile and reuse regular expressions #33

Merged
merged 2 commits into from
Nov 23, 2022

Conversation

c00ler
Copy link
Contributor

@c00ler c00ler commented Sep 17, 2022

This pull request proposes a small performance improvement. Compilation of a regular expression pattern is a relatively "heavy" process. Since we use the same pattern in the loop it's possible to just compile it once and then re-use it. The other notable change is the upgrade of the JUnit to the latest version from 4.x branch. Since the functionality was not changed, the pull request doesn't have any changes to the tests.

@c00ler
Copy link
Contributor Author

c00ler commented Oct 17, 2022

@cdimascio could you please have a look? Thank you!

Copy link
Owner

@cdimascio cdimascio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the improvements

@cdimascio cdimascio merged commit 82cf585 into cdimascio:master Nov 23, 2022
@cdimascio
Copy link
Owner

@all-contributors add @c00ler for code

@allcontributors
Copy link
Contributor

@cdimascio

I've put up a pull request to add @c00ler! 🎉

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