Skip to content

store: batch create.loc window preads and SIMD prefix - #504

Merged
reardencode merged 3 commits into
masterfrom
store/loc-batch-simd
Sep 13, 2026
Merged

reardencode merged 3 commits into
masterfrom
store/loc-batch-simd

Conversation

@rearden-grok

@rearden-grok rearden-grok Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Leftover lookup stamps create.loc by reading and prefix-summing only through the highest fk in each 1024-create window (not the unused tail) and issuing those window preads as one bulk batch (held head-resolve session or pread_batch).
  • Non-overflow windows use an 8-wide u8<<3 inclusive prefix (SSE2 on x86_64, NEON on aarch64). No cross-window loc cache.
  • Darwin OS smoke runs prefix_sum_fast_matches_scalar so Apple silicon pins NEON against the scalar golden (Linux CI already runs it on SSE2).

Test plan

  • cargo test -p rbitcoin-store --lib -- prefix_sum_fast_matches_scalar loc_window_need_n range_batch_multi_window
  • cargo clippy -p rbitcoin-store --lib --tests -- -D warnings
  • scripts/ci-os-smoke.test.sh
  • Required CI green (fmt, deny, clippy, ast-grep, test, windows, macos, multinode, coverage)

Made with Cursor

rearden-grok Bot and others added 3 commits September 13, 2026 13:15
Leftover lookup was a libc loop of full 1024-create windows. Read and
sum only through the highest fk in each window, issue those preads as
one bulk batch (held head-resolve session or pread_batch), and prefix-sum
non-overflow slots with SSE2. No cross-window loc cache.

Co-authored-by: Cursor <cursoragent@cursor.com>
Darwin CI and Release zips are aarch64. Same 8-wide u8<<3 inclusive
scan as SSE2; Darwin smoke runs the scalar golden so NEON is pinned.

Co-authored-by: Cursor <cursoragent@cursor.com>
SIMD stays the shipped prefix on x86_64/aarch64 in test binaries;
the scalar helper is only the golden. Native OS smoke now runs the
prefix tests so SSE2 and NEON are not Linux-suite-only.

Co-authored-by: Cursor <cursoragent@cursor.com>
@reardencode
reardencode merged commit 8249ea3 into master Sep 13, 2026
16 checks passed
@rearden-grok
rearden-grok Bot deleted the store/loc-batch-simd branch September 13, 2026 20:55
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