Skip to content

Skip dense meet joined-mask scans#47

Open
MesTTo wants to merge 1 commit into
Adam-Vandervorst:masterfrom
MesTTo:pr/pathmap-dense-meet-overlap
Open

Skip dense meet joined-mask scans#47
MesTTo wants to merge 1 commit into
Adam-Vandervorst:masterfrom
MesTTo:pr/pathmap-dense-meet-overlap

Conversation

@MesTTo

@MesTTo MesTTo commented Jun 23, 2026

Copy link
Copy Markdown

Optimizes the dense pmeet and prestrict paths by iterating the meet mask directly and looking up the corresponding slots.

This avoids scanning the joined mask when only overlapping children can contribute.

Reviewer note:

The normal diff is larger than the whitespace-ignored diff because removing the joined-mask branch changes indentation inside the two rewritten loops. git diff -w shows the smaller control-flow change.

Validation:

  • cargo test --lib passed with 593 passed and 1 ignored
  • jscpd on src/dense_byte_node.rs
  • git diff --check

@MesTTo MesTTo marked this pull request as ready for review June 23, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant