Skip to content

Accelerate seeded record checksums - #460

Merged
matrixarkai merged 1 commit into
mainfrom
perf/accelerated-record-checksums
Nov 19, 2026
Merged

matrixarkai merged 1 commit into
mainfrom
perf/accelerated-record-checksums

Conversation

@matrixarkai

Copy link
Copy Markdown
Owner

Summary

  • Replace bit-at-a-time CRC-32C with runtime-accelerated checksums and a portable software fallback.
  • Preserve the seeded public API, empty-input fast path, record length coverage, and checksum bytes.
  • Compare seeded, split, and unaligned inputs against the previous scalar algorithm through 128 KiB.
  • Add a bounded checksum CPU microbenchmark; no cache formats or durability defaults change.

Validation

  • Release library: 865 passed, 6 ignored.
  • Release integration suites: 28 passed.
  • Fallback-storage-backend checksum regression: 1 passed (not a forced software-CRC CPU run).
  • Strict all-target/all-feature release Clippy, formatting, whitespace, content, and dependency license checks.

Timing scope

On the local release build, 4-KiB checksum cost changed from 27430 ns to 276 ns and 64-KiB cost from 436148 ns to 3589 ns. Empty input stayed at 1 ns. These are checksum-only CPU timings on a shared host, not service QPS or device-latency claims. Reproduce with cargo run --release --example record_checksum_cost.

@matrixarkai
matrixarkai merged commit d3b8e60 into main Nov 19, 2026
7 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.

2 participants