prometheus/tsdb/chunkenc
Filip Petkovski 10a82f87fd
Enable reusing memory when converting between histogram types
The 'ToFloat' method on integer histograms currently allocates new memory
each time it is called.

This commit adds an optional *FloatHistogram parameter that can be used
to reuse span and bucket slices. It is up to the caller to make sure the
input float histogram is not used anymore after the call.

Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
2023-12-08 10:22:59 +01:00
..
bstream.go enable gocritic, unconvert and unused linters 2023-04-13 19:20:22 +00:00
bstream_test.go
chunk.go Change `ChunkReader.Chunk()` to `ChunkOrIterable()` 2023-11-28 11:14:29 +01:00
chunk_test.go tsdb: Rework iterators (#9877) 2021-11-29 13:24:23 +05:30
float_histogram.go Fix histogram append errors (#13201) 2023-11-29 11:39:12 +01:00
float_histogram_test.go Enable reusing memory when converting between histogram types 2023-12-08 10:22:59 +01:00
histogram.go Fix histogram append errors (#13201) 2023-11-29 11:39:12 +01:00
histogram_meta.go ci(lint): enable godot; append dot at the end of comments 2023-10-31 19:53:38 +02:00
histogram_meta_test.go histograms: General readability tweaks 2023-01-19 13:26:42 +01:00
histogram_test.go Enable reusing memory when converting between histogram types 2023-12-08 10:22:59 +01:00
varbit.go tsdb/chunkenc: use Go standard errors package 2023-11-08 08:38:57 +00:00
varbit_test.go Use more varbit in histogram chunks 2021-10-13 20:03:35 +02:00
xor.go ci(lint): enable nolintlint and remove redundant comments (#12926) 2023-10-31 12:35:13 +01:00
xor_test.go chunkenc: Slightly optimize xorWrite/xoRead (#11476) 2022-10-20 15:08:01 +05:30