grafana / mimir

Grafana Mimir provides horizontally scalable, highly available, multi-tenant, long-term storage for Prometheus.
https://grafana.com/oss/mimir/
GNU Affero General Public License v3.0
4.17k stars 537 forks source link

MQE: create slices with capacity for number of steps remaining, not all possible steps for functions over range vectors #10007

Closed charleskorn closed 4 days ago

charleskorn commented 4 days ago

What this PR does

This PR applies the same idea as https://github.com/grafana/mimir/pull/9717 to functions over range vectors.

Which issue(s) this PR fixes or relates to

https://github.com/grafana/mimir/pull/9717

Checklist