Skip to content

perf: default local-copy --checksum to XXH3/128 matching upstream rsync 3.4.1 (CSM-8) - #5128

Merged
oferchen merged 1 commit into
masterfrom
perf/csm-8-default-xxh3-128-local-checksum
May 29, 2026
Merged

oferchen merged 1 commit into
masterfrom
perf/csm-8-default-xxh3-128-local-checksum

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Change default checksum algorithm for local-copy --checksum mode from MD5 to XXH3/128, matching upstream rsync 3.4.1 behavior
  • XXH3/128 is 10-30x faster than MD5, eliminating the 2-3x performance gap observed in checksum mode benchmarks
  • Update builder default, type default, and test expectations; no changes to wire/remote negotiation or explicit MD5-specific tests

Test plan

  • CI nextest passes on all platforms (Linux, macOS, Windows)
  • checksum_algorithm_round_trip test verifies new default is Xxh3_128 { seed: 0 }
  • checksum_algorithm_behavior tests continue to pass (they explicitly set algorithms)
  • files_checksum_match_respects_algorithm_selection covers all algorithms including MD5
  • fmt + clippy clean

Upstream rsync 3.4.1 uses XXH128 for --checksum mode, which is 10-30x
faster than MD5. Our local-copy path was defaulting to MD5, causing a
2-3x performance gap in checksum mode benchmarks. Change the default
SignatureAlgorithm from Md5 to Xxh3_128 in both the builder and the
type defaults to match upstream behavior.
@oferchen
oferchen merged commit bd6030c into master May 29, 2026
109 of 118 checks passed
@oferchen
oferchen deleted the perf/csm-8-default-xxh3-128-local-checksum branch May 29, 2026 07:12
oferchen added a commit that referenced this pull request Aug 24, 2026
#5128)

Upstream rsync 3.4.1 uses XXH128 for --checksum mode, which is 10-30x
faster than MD5. Our local-copy path was defaulting to MD5, causing a
2-3x performance gap in checksum mode benchmarks. Change the default
SignatureAlgorithm from Md5 to Xxh3_128 in both the builder and the
type defaults to match upstream behavior.
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