prometheus/model
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
..
exemplar Scraping: use slices.sort for exemplars 2023-11-24 14:42:26 +00:00
histogram Enable reusing memory when converting between histogram types 2023-12-08 10:22:59 +01:00
labels labels: extract common code between slice and stringlabels 2023-11-17 18:20:03 +00:00
metadata Introduce TSDB changes for appending metadata to the WAL (#10972) 2022-07-19 10:58:52 +02:00
relabel Merge branch 'main' of github.com:prometheus/prometheus into document-and-test-relabel-memory-reuse 2023-07-12 15:01:29 +02:00
rulefmt golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
textparse golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
timestamp
value