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

fix: Optimize regular initialization #12926

Merged

Conversation

yincongcyincong
Copy link
Contributor

@yincongcyincong yincongcyincong commented May 9, 2024

What this PR does / why we need it:
every time function buildNotifierConfig and containsAllIDTypes execute, these regexp are initialized. which situation reduce the performance.

Which issue(s) this PR fixes:
no issue

Special notes for your reviewer:

@yincongcyincong yincongcyincong requested a review from a team as a code owner May 9, 2024 13:49
@CLAassistant
Copy link

CLAassistant commented May 9, 2024

CLA assistant check
All committers have signed the CLA.

@MichelHollands
Copy link
Contributor

@yincongcyincong Thanks for this contribution. Can you run make format so the failing CI step goes green? Once that is done I'll merge it.

@yincongcyincong
Copy link
Contributor Author

yincongcyincong commented May 10, 2024

@yincongcyincong Thanks for this contribution. Can you run make format so the failing CI step goes green? Once that is done I'll merge it.

ok, bro. i've formated go files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants