mirror of https://github.com/prometheus/prometheus
Browse Source
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>pull/12997/head
Bryan Boreham
1 year ago
1 changed files with 4 additions and 0 deletions
Loading…
Reference in new issue