mirror of
https://github.com/prometheus/prometheus
synced 2024-12-28 01:32:19 +00:00
PromQL: reduce garbage in range-query evaluation
The temporary variable was allocated on the heap, and it is unnecessary. Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
parent
05356e76de
commit
49c5e7afe1
@ -1172,9 +1172,7 @@ func (ev *evaluator) rangeEval(prepSeries func(labels.Labels, *EvalSeriesHelper)
|
||||
bufHelpers[i] = make([]EvalSeriesHelper, len(matrixes[i]))
|
||||
|
||||
for si, series := range matrixes[i] {
|
||||
h := seriesHelpers[i][si]
|
||||
prepSeries(series.Metric, &h)
|
||||
seriesHelpers[i][si] = h
|
||||
prepSeries(series.Metric, &seriesHelpers[i][si])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user