mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 14:54:27 +01:00
Only call plane_sweep on subgroups when 2 or more are present
This commit is contained in:
parent
d35afa0cf5
commit
03eb5d87c1
@ -496,7 +496,11 @@ fn resolve_plane_sweep_candidates(
|
|||||||
None => return Ok(vec![]),
|
None => return Ok(vec![]),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
groups_positions.push(plane_sweep(subgroup, true)?);
|
match subgroup.len() {
|
||||||
|
0 => {},
|
||||||
|
1 => groups_positions.push(subgroup.pop().unwrap()),
|
||||||
|
_ => groups_positions.push(plane_sweep(subgroup, true)?),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
match groups_positions.len() {
|
match groups_positions.len() {
|
||||||
0 => vec![],
|
0 => vec![],
|
||||||
|
Loading…
Reference in New Issue
Block a user