You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: avoid deduplicating docs ids when not needed (#5344)
When index consists of only singular values per document,
we do not have to deduplicate doc ids during query time.
Benchmarks:
Before the PR:
Benchmark Time CPU Iterations
------------------------------------------------------------
BM_SearchDocIds/0 7238 ns 7238 ns 388043
BM_SearchDocIds/1 30202 ns 30200 ns 89480
BM_SearchDocIds/2 20986 ns 20984 ns 133450
After:
Benchmark Time CPU Iterations
------------------------------------------------------------
BM_SearchDocIds/0 7071 ns 7070 ns 406632
BM_SearchDocIds/1 13149 ns 13142 ns 218935
BM_SearchDocIds/2 11870 ns 11868 ns 236922
Signed-off-by: Roman Gershman <[email protected]>
0 commit comments