mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Do less useless intersections
This commit is contained in:
parent
0ca1a4e805
commit
41f51adbec
5 changed files with 31 additions and 23 deletions
|
@ -251,6 +251,7 @@ pub fn compute_phrase_docids(
|
|||
// We sort the bitmaps so that we perform the small intersections first, which is faster.
|
||||
bitmaps.sort_unstable_by_key(|a| a.len());
|
||||
|
||||
// TODO use MultiOps intersection which and remove the above sort
|
||||
for bitmap in bitmaps {
|
||||
candidates &= bitmap;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue