prometheus/tsdb/wlog
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
..
checkpoint.go tsdb/wlog: use Go standard errors package 2023-11-08 21:41:58 +00:00
checkpoint_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
live_reader.go tsdb/wlog: use Go standard errors package 2023-11-08 21:41:58 +00:00
reader.go tsdb/wlog: use Go standard errors package 2023-11-08 21:41:58 +00:00
reader_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
watcher.go tsdb/wlog: use Go standard errors (#13144) 2023-12-04 17:08:43 +00:00
watcher_test.go Enable reusing memory when converting between histogram types 2023-12-08 10:22:59 +01:00
wlog.go Enable default revive rules (#13068) 2023-11-29 17:23:34 +00:00
wlog_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00