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

Improve promString performance #496

Merged
merged 1 commit into from
Jan 16, 2022

Conversation

kgeckhart
Copy link
Contributor

When profiling a large scrape for CPU + Memory, creating this replacer + compiling the regex stood out a lot due to the number of calls to promString. Moving them to package level should help improve this.

@kgeckhart kgeckhart changed the title Move replacer and splitRegexp to package level Improve promString performance Dec 10, 2021
@thomaspeitz
Copy link
Contributor

Awesome thanks a lot!

@cristiangreco
Copy link
Collaborator

Hey @thomaspeitz , happy new year! 🎉

Any chance you can look again at this PR during the week? This has been running in production for a while now and proved useful!

@thomaspeitz thomaspeitz merged commit 6012cf0 into nerdswords:master Jan 16, 2022
@thomaspeitz
Copy link
Contributor

Sorry for the long delay was doing some vacation.

Hope to release it on Thuersday :)

@cristiangreco
Copy link
Collaborator

Thanks @thomaspeitz!

@kgeckhart kgeckhart deleted the promString-performance branch April 15, 2023 12:57
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.

None yet

3 participants