grafana / mimir-prometheus

Apache License 2.0
35 stars 9 forks source link

Cherry-pick upstream #14721 [PERF] TSDB: Grow postings by doubling #704

Closed bboreham closed 1 month ago

bboreham commented 1 month ago

Go's built-in append() grows larger slices with factor 1.3, which means we do a lot more allocating and copying for larger postings. This shows up in profiles of WAL reading, for instance.

Cherry-pick of https://github.com/prometheus/prometheus/pull/14721