mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app/vmselect/promql: remove superflouos timeseries copy in histogram_quantile
func
This commit is contained in:
parent
7e7d4d5275
commit
d2be567482
1 changed files with 4 additions and 6 deletions
|
@ -296,14 +296,12 @@ func transformHistogramQuantile(tfa *transformFuncArg) ([]*timeseries, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
var dst timeseries
|
ts.MetricName.ResetMetricGroup()
|
||||||
dst.CopyFrom(ts)
|
ts.MetricName.RemoveTag("le")
|
||||||
dst.MetricName.ResetMetricGroup()
|
bb.B = marshalMetricTagsSorted(bb.B[:0], &ts.MetricName)
|
||||||
dst.MetricName.RemoveTag("le")
|
|
||||||
bb.B = marshalMetricTagsSorted(bb.B[:0], &dst.MetricName)
|
|
||||||
m[string(bb.B)] = append(m[string(bb.B)], x{
|
m[string(bb.B)] = append(m[string(bb.B)], x{
|
||||||
le: le,
|
le: le,
|
||||||
ts: &dst,
|
ts: ts,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
bbPool.Put(bb)
|
bbPool.Put(bb)
|
||||||
|
|
Loading…
Reference in a new issue