Pre-allocate map for performance
parent
1a9de4c9b8
commit
ed41122ade
|
@ -1088,7 +1088,11 @@ func (m *Measurement) walkWhereForSeriesIds(expr influxql.Expr) (SeriesIDs, Filt
|
|||
return nil, nil, err
|
||||
}
|
||||
|
||||
filters := FilterExprs{}
|
||||
if len(ids) == 0 {
|
||||
return ids, nil, nil
|
||||
}
|
||||
|
||||
filters := make(FilterExprs, len(ids))
|
||||
for _, id := range ids {
|
||||
filters[id] = expr
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue