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

Compile regex just once for HostStrategy #936

Merged
merged 1 commit into from
Feb 8, 2025

Conversation

lahma
Copy link
Contributor

@lahma lahma commented Feb 6, 2025

No need always create the regex over and over again (though it could be cached if regex cache isn't polluted). Now constructing regex in constructor with compiled flag and using it in following invocations.

@AndrewTriesToCode
Copy link
Contributor

Thanks!

@AndrewTriesToCode AndrewTriesToCode merged commit a70f7e0 into Finbuckle:main Feb 8, 2025
7 checks passed
@lahma lahma deleted the better-regex branch February 8, 2025 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants