prometheus/tsdb/record
Bryan Boreham 26fa2e8356 TSDB: Pre-size buffer to read samples from WAL
When reading the WAL this method is called with buffers from a pool, on
multiple goroutines. Pre-allocating sufficient size avoids slow growth
and many reallocations in `append`.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-10-17 17:31:26 +00:00
..
record.go TSDB: Pre-size buffer to read samples from WAL 2023-10-17 17:31:26 +00:00
record_test.go tsdb: Add counter reset hint to histograms and support in WAL 2023-01-10 17:41:53 +05:30