prometheus/tsdb/chunkenc
György Krajcsovits 6c646657d5
perf(chunkenc): intern the custom values for native histograms
The custom values are the "le" bucket boundaries of native histograms
with custom buckets. They are never modified. It is ok to not copy them
when iterating a chunk, just reference them.

If we will ever have a function that modifies the custom values, like
'trim' for example. That function will have to make a copy on write.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2025-05-07 14:40:45 +02:00
..
bstream.go [PERF] Chunk encoding: simplify writeByte 2024-09-18 13:19:04 +01:00
bstream_test.go tsdb/chunkenc.Pool: Refactor Get and Put 2024-05-08 13:37:25 +02:00
chunk.go Fix: chunkenc.MockSeriesIterator 2024-08-30 16:44:36 +02:00
chunk_test.go enable errorf rule from perfsprint linter 2024-11-06 16:50:36 +01:00
float_histogram.go perf(chunkenc): intern the custom values for native histograms 2025-05-07 14:40:45 +02:00
float_histogram_test.go tsdb/chunkenc: don't reuse custom value slices between histograms 2024-11-29 16:28:09 +11:00
histogram.go perf(chunkenc): intern the custom values for native histograms 2025-05-07 14:40:45 +02:00
histogram_meta.go Always return unknown hint for first sample in non-gauge histogram chunk (#15343) 2024-11-12 15:14:06 +01:00
histogram_meta_test.go chore: Fix typos (#14868) 2024-09-10 22:32:03 +02:00
histogram_test.go perf(chunkenc): intern the custom values for native histograms 2025-05-07 14:40:45 +02:00
varbit.go Fix language in docs and comments (#14041) 2024-05-08 17:57:09 +02:00
varbit_test.go Use more varbit in histogram chunks 2021-10-13 20:03:35 +02:00
xor.go [PERF] Chunk encoding: combine timestamp writes 2024-09-18 13:19:21 +01:00
xor_test.go chunkenc: Slightly optimize xorWrite/xoRead (#11476) 2022-10-20 15:08:01 +05:30