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 8150d49
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/msrv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: dtolnay/rust-toolchain@1.55.0
- uses: dtolnay/rust-toolchain@1.63.0
- run: cargo check
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[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"
rust-version = "1.63"
authors = ["Adam Reichold <adam.reichold@t-online.de>"]
license = "MIT OR Apache-2.0"
readme = "README.md"
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 8150d49

Please # to comment.