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

chore: avoid recompiling struct tag matching regexes #145

Merged

Conversation

mklimuk
Copy link

@mklimuk mklimuk commented Jul 29, 2020

This is a performance improvement.

We do not need to recompile regexes that match regex= and example= inside pact struct tags. I moved them into package-level vars.

Copy link
Member

@mefellows mefellows left a comment

Choose a reason for hiding this comment

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

Yes nice one, thank you.

@mefellows mefellows merged commit aa6e2d2 into pact-foundation:master Jul 29, 2020
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