prometheus/storage
Bryan Boreham b987afa7ef labels: simplify call to get Labels from Builder
It took a `Labels` where the memory could be re-used, but in practice
this hardly ever benefitted. Especially after converting `relabel.Process`
to `relabel.ProcessBuilder`.

Comparing the parameter to `nil` was a bug; `EmptyLabels` is not `nil`
so the slice was reallocated multiple times by `append`.

Lastly `Builder.Labels()` now estimates that the final size will depend
on labels added and deleted.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-03-22 17:05:20 +00:00
..
remote labels: simplify call to get Labels from Builder 2023-03-22 17:05:20 +00:00
buffer.go federate: Fix PeekBack usage 2023-01-12 20:43:02 +05:30
buffer_test.go federate: Fix PeekBack usage 2023-01-12 20:43:02 +05:30
fanout.go Support FloatHistogram in TSDB (#11522) 2022-12-28 14:25:07 +05:30
fanout_test.go storage: allow re-use of iterators 2022-12-15 18:32:45 +00:00
generic.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
interface.go Support FloatHistogram in TSDB (#11522) 2022-12-28 14:25:07 +05:30
lazy.go tsdb: Added ChunkQueryable implementations to db; unified MergeSeriesSets and vertical to single struct. (#7069) 2020-07-31 16:03:02 +01:00
memoized_iterator.go Merge branch 'main' into sparsehistogram 2021-12-15 13:49:33 +01:00
memoized_iterator_test.go Merge 'main' into sparsehistogram 2022-10-05 22:14:49 +02:00
merge.go histograms: Fix counter reset header during merging 2023-01-25 18:23:10 +01:00
merge_test.go Refactor tsdbutil for tests/native histograms (#11948) 2023-02-10 17:09:33 +05:30
noop.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
secondary.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
series.go Support FloatHistogram in TSDB (#11522) 2022-12-28 14:25:07 +05:30
series_test.go package storage: fix up test not to access Labels internals 2023-01-16 18:48:49 +00:00