shengjun.li
|
908812266c
|
Add heap_replace_top to simplify heap_pop + heap_push (#1597)
Summary:
Signed-off-by: shengjun.li <shengjun.li@zilliz.com>
Add heap_replace_top to simplify heap_pop + heap_push
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1597
Test Plan:
OMP_NUM_THREADS=1 buck run mode/opt //faiss/benchs/:bench_heap_replace
OMP_NUM_THREADS=8 buck run mode/opt //faiss/benchs/:bench_heap_replace
Reviewed By: beauby
Differential Revision: D25943140
Pulled By: mdouze
fbshipit-source-id: 66fe67779dd281a7753f597542c2e797ba0d7df5
|
2021-01-20 11:28:08 -08:00 |