Browse Source

add unused pointslices to the pool (#4363)

Signed-off-by: Tony Lee <tl@hudson-trading.com>
pull/4315/head^2
Tony Lee 6 years ago committed by Brian Brazil
parent
commit
bcdaf8e2d2
  1. 2
      promql/engine.go

2
promql/engine.go

@ -1060,6 +1060,8 @@ func (ev *evaluator) matrixSelector(node *MatrixSelector) Matrix {
if len(ss.Points) > 0 {
matrix = append(matrix, ss)
} else {
putPointSlice(ss.Points)
}
}
return matrix

Loading…
Cancel
Save