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 bcb55ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "sif-kdtree"
description = "simple, immutable, flat k-d tree"
version = "0.6.0"
version = "0.6.1"
edition = "2018"
rust-version = "1.55"
authors = ["Adam Reichold <adam.reichold@t-online.de>"]
Expand Down
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 bcb55ad

Please # to comment.