client_golang
client_golang copied to clipboard
Allocate constrain label values on stack, not heap for performance
Hey 👋 , pardon my ignorance, could you update your PR description mentioning how this change improves performance? I saw the title mentions that we're now allocating label values on the stack instead oh the heap, but I couldn't understand why that happens.
Does it make sense to share a pprof profile or benchmarks?
Hey, this PR accomplishes similar thing, I'll close the PR now. https://github.com/prometheus/client_golang/pull/1272