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

PC-8951 optimize mem usage by IsDNS1123Label func #65

Merged
merged 2 commits into from
Jul 13, 2023

Conversation

mkaras-nobl9
Copy link
Contributor

Self-check

  • Have I checked if my changes affect performance or resources usage?

Motivation

The IsDNS1123Label function in v1alpha/validator package compiled the regexp for every call. Now compiling the regexp for validation DNS label is static.

Summary

before:
Screenshot from 2023-07-13 10-48-30

after:
image

The IsDNS1123Label function in v1alpha/validator package compiled the regexp
for every call. Now compiling the regexp for validation DNS label is static.
Copy link
Contributor

@lukasz-dobek lukasz-dobek left a comment

Choose a reason for hiding this comment

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

@mkaras-nobl9 mkaras-nobl9 merged commit 6854aff into main Jul 13, 2023
3 checks passed
@mkaras-nobl9 mkaras-nobl9 deleted the PC-8951-optimize-mem-usage-v1alpha-validator branch July 13, 2023 11:48
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