Skip to content

Commit

Permalink
Actually add the opportunistic early breaks for the parallel look-ups.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamreichold committed Dec 22, 2024
1 parent fd9d229 commit 8841fb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/look_up.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ where
let objects = self.objects.as_ref();

if !objects.is_empty() {
par_look_up(&LookUpArgs { query, visitor }, objects, 0);
par_look_up(&LookUpArgs { query, visitor }, objects, 0)?;
}

ControlFlow::Continue(())
Expand Down Expand Up @@ -205,7 +205,7 @@ where
let position = object.position();

if contains(args.query.aabb(), position) && args.query.test(position) {
(args.visitor)(object);
(args.visitor)(object)?;
}

let search_left =
Expand Down

0 comments on commit 8841fb1

Please # to comment.