commit | 36d0bf9957ed0f1fd392823ab2a4a4013601076e | [log] [tgz] |
---|---|---|
author | Bryan Boreham <bjboreham@gmail.com> | Thu Feb 29 15:07:28 2024 |
committer | GitHub <noreply@github.com> | Thu Feb 29 15:07:28 2024 |
tree | 0655bb42ebe5db42270a8df169ed90a86631ba07 | |
parent | e8be06d21250ae96e3fed6af687695265b2e633b [diff] |
labelset: optimise String() function (#590) Build the output in a `bytes.Buffer` to avoid creating small strings which are passed to `Join`. Use stack arrays to avoid allocations for small buffers, and `AppendQuote`/`AvailableBuffer` avoids allocating and copying in the case that buffer space is sufficient. Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This repository contains Go libraries that are shared across Prometheus components and libraries. They are considered internal to Prometheus, without any stability guarantees for external usage.
context.Context