Skip to content

Conversation

boekkooi-impossiblecloud

Good day,

While I was checking some profiles I noticed that EscapeName and EscapeMetricFamily where doing a lot of allocation.
This PR reduce this a little by pre-allocating the Metric and Label slices and the string builder for the UnderscoreEscaping strategy in EscapeName.

Thanks for reviewing and let me know what you think.
Have a good one!

2025-09-02_12-08

@boekkooi-impossiblecloud
Copy link
Author

Hello @roidelapluie, @gotjosh, @ArthurSens,

Would one of you maybe have time to review this PR?

Thanks in advance and have a great day!

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.

1 participant