mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Optimize roaring operation
Co-authored-by: Many the fish <many@meilisearch.com>
This commit is contained in:
parent
f9807ba32e
commit
0656a0d515
1 changed files with 2 additions and 2 deletions
|
@ -252,8 +252,8 @@ pub fn bucket_sort<'ctx, Q: RankingRuleQueryTrait>(
|
||||||
|| is_below_threshold
|
|| is_below_threshold
|
||||||
{
|
{
|
||||||
if is_below_threshold {
|
if is_below_threshold {
|
||||||
all_candidates -=
|
all_candidates -= &next_bucket.candidates;
|
||||||
next_bucket.candidates | &ranking_rule_universes[cur_ranking_rule_index];
|
all_candidates -= &ranking_rule_universes[cur_ranking_rule_index];
|
||||||
} else {
|
} else {
|
||||||
maybe_add_to_results!(next_bucket.candidates);
|
maybe_add_to_results!(next_bucket.candidates);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue