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
Xiaofan 2024-05-12 20:55:31 -07:00 committed by GitHub
parent ef41f80bd0
commit 230c88b1de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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