Skip to content

perf(checksums): keep rolling s1/s2 in SIMD registers across stripe (CSP-2 F1 #2387) - #4451

Merged
oferchen merged 1 commit into
masterfrom
perf/csp-2-vector-register-fold
May 18, 2026
Merged

oferchen merged 1 commit into
masterfrom
perf/csp-2-vector-register-fold

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Per CSP-1 audit (PR docs(audit): rolling SIMD checksum-sync regression hypothesis (CSP-1 #2386) #4450), refactor the AVX2/SSE2/NEON rolling-checksum loops so s1/s2 stay in vector registers across the entire stripe instead of horizontally reducing every iteration.
  • Mirrors upstream rsync 3.4.1's simd-checksum-x86_64.cpp:207-343 vector-register accumulation pattern.
  • Expected 1.4-1.8x per-byte throughput gain.

Test plan

  • cargo fmt --all clean
  • Existing scalar-vs-SIMD parity tests still hold
  • New property test covers random inputs 1..4096 bytes

@oferchen
oferchen merged commit 3cb38b6 into master May 18, 2026
3 of 8 checks passed
@oferchen
oferchen deleted the perf/csp-2-vector-register-fold branch May 19, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant