Skip to content

perf(features): parallelize boundary detection with bounded CPU workers - #148

Merged
rsasaki0109 merged 1 commit into
mainfrom
codex/parallel-boundary-detection
Oct 12, 2026
Merged

rsasaki0109 merged 1 commit into
mainfrom
codex/parallel-boundary-detection

Conversation

@rsasaki0109

@rsasaki0109 rsasaki0109 commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Boundary detection previously queried and evaluated every point on the caller. feature-boundary now shares one KD-tree across bounded scoped CPU workers, reuses angular scratch per worker and writes disjoint bands directly into the final mask. Small/one-worker clouds remain serial; public signatures, per-point math, selected point order, schema, attributes and metadata are preserved.

Validation: 1,081,992 exact decisions against the frozen serial API; independent full planar rim and degenerate/normal cases; all six gathered buffer types including signed-zero/NaN words; validation, empty shortcuts and concurrent calls. Seven minimal and nineteen all-feature native tests plus one facade smoke pass. Strict minimal/all-feature Clippy, crate/facade WASM compilation, formatting and diff checks pass.

Completed boundary_mask measurements use twelve conditions, two warmups and twenty rotating paired rounds. All six 32,768/65,536-point conditions favor bounded public staging by 1.45–2.66x. An adverse 16,384-point curved one-worker control (~7% slower) is retained in the notes; small-input neutrality and fixed cross-machine speedups are not claimed. Attribute gathering is outside the measured API.

Measurement details: notes/2026-10-12_parallel_boundary_detection.md.

@rsasaki0109
rsasaki0109 changed the base branch from codex/validated-gpu-ai-pack to main October 12, 2026 01:56
@rsasaki0109
rsasaki0109 merged commit 7e4b466 into main Oct 12, 2026
115 checks passed
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