prometheus/storage
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
..
remote Enable reusing memory when converting between histogram types 2023-12-08 10:22:59 +01:00
buffer.go Enable reusing memory when converting between histogram types 2023-12-08 10:22:59 +01:00
buffer_test.go Enable reusing memory when converting between histogram types 2023-12-08 10:22:59 +01:00
fanout.go Add context argument to Querier.Select (#12660) 2023-09-12 12:37:38 +02:00
fanout_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
generic.go Add warnings (and annotations) to PromQL query results (#12152) 2023-09-14 18:57:31 +02:00
interface.go Move histogram validation code to model/histogram 2023-11-03 16:17:24 +02:00
lazy.go Add warnings (and annotations) to PromQL query results (#12152) 2023-09-14 18:57:31 +02:00
memoized_iterator.go Make MemoizedSeriesIterator not implement chunkenc.Iterator 2023-05-03 12:45:39 -07:00
memoized_iterator_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
merge.go Change `ChunkReader.Chunk()` to `ChunkOrIterable()` 2023-11-28 11:14:29 +01:00
merge_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
noop.go Add warnings (and annotations) to PromQL query results (#12152) 2023-09-14 18:57:31 +02:00
secondary.go Add warnings (and annotations) to PromQL query results (#12152) 2023-09-14 18:57:31 +02:00
series.go Add a chunk size limit in bytes (#12054) 2023-08-24 15:21:17 +02:00
series_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00