mirror of https://github.com/milvus-io/milvus.git
enhance: improve reduce performance on very large topk (#32871)
fix #32870 reduce cpu usage for reduce on large k Signed-off-by: xiaofanluan <xiaofan.luan@zilliz.com>pull/33009/head
parent
ef41f80bd0
commit
230c88b1de
|
@ -319,7 +319,7 @@ func reduceSearchResultDataNoGroupBy(ctx context.Context, subSearchResultData []
|
|||
cursors = make([]int64, subSearchNum)
|
||||
|
||||
j int64
|
||||
idSet = make(map[interface{}]struct{})
|
||||
idSet = make(map[interface{}]struct{}, limit)
|
||||
)
|
||||
|
||||
// skip offset results
|
||||
|
|
Loading…
Reference in New Issue