prometheus/model/labels
Bryan Boreham 30297f0d9b stringlabels: size buffer for added labels
This makes the buffer the correct size for the common case that labels
have only been added. It will be too large for the case that labels are
changed, but the current buffer resize logic in `appendLabelTo` doubles
the buffer, so a small over-estimate is better.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-03-06 16:29:21 +00:00
..
labels.go labels: shrink by making internals a single string 2023-02-22 15:34:23 +00:00
labels_string.go stringlabels: size buffer for added labels 2023-03-06 16:29:21 +00:00
labels_test.go Add benchmark copying labels 2023-02-22 16:36:45 +00:00
matcher.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
matcher_test.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
regexp.go Allow downstream projects to use faster regexp (#10251) 2022-02-08 11:03:20 +01:00
regexp_test.go Allow downstream projects to use faster regexp (#10251) 2022-02-08 11:03:20 +01:00
test_utils.go labels: use ScratchBuilder in ReadLabels 2022-12-19 15:22:09 +00:00