Skip to content

Optimize rolling checksum multi-byte updates - #1926

Merged
oferchen merged 1 commit into
masterfrom
implement-missing-components-for-oc-rsync
Nov 4, 2025
Merged

oferchen merged 1 commit into
masterfrom
implement-missing-components-for-oc-rsync

Conversation

@oferchen

@oferchen oferchen commented Nov 4, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • replace the per-byte loop in RollingChecksum::roll_many with an aggregated weighted-delta calculation that matches the scalar behaviour while reducing work for long batches
  • add a long-sequence regression test that compares the batched path to repeated single-byte rolls
  • document the new aggregation requirements in internal docs

Testing

  • cargo test -p rsync-checksums

@oferchen
oferchen merged commit f690726 into master Nov 4, 2025
@oferchen
oferchen deleted the implement-missing-components-for-oc-rsync branch November 4, 2025 06:52
oferchen added a commit that referenced this pull request May 2, 2026
Mirrors upstream rsync 3.4.1's am_root tri-state semantics: when
--fake-super (or daemon `fake super = yes`) is active, the receiver
must demote am_root to the negative sentinel that routes privileged
operations (chown, mknod, mkfifo) through the user.rsync.%stat
xattr placeholder branch instead of attempting real syscalls.

Extracts an `effective_am_root(super_mode, fake_super) -> bool`
helper covering the full truth table and rewires
`LocalCopyOptions::am_root()` through it. Updates the two
combined-flag tests that previously asserted the un-demoted
behavior, and adds dedicated truth-table tests at the helper.

upstream: options.c:89 - am_root tri-state, -1 is "fake-super"
upstream: clientserver.c:1102-1105 - daemon fake super = yes forces -1
upstream: syscall.c do_mknod() - am_root<0 substitutes 0600 placeholder

Refs #1926.
oferchen added a commit that referenced this pull request May 2, 2026
Mirrors upstream rsync 3.4.1's am_root tri-state semantics: when
--fake-super (or daemon `fake super = yes`) is active, the receiver
must demote am_root to the negative sentinel that routes privileged
operations (chown, mknod, mkfifo) through the user.rsync.%stat
xattr placeholder branch instead of attempting real syscalls.

Extracts an `effective_am_root(super_mode, fake_super) -> bool`
helper covering the full truth table and rewires
`LocalCopyOptions::am_root()` through it. Updates the two
combined-flag tests that previously asserted the un-demoted
behavior, and adds dedicated truth-table tests at the helper.

upstream: options.c:89 - am_root tri-state, -1 is "fake-super"
upstream: clientserver.c:1102-1105 - daemon fake super = yes forces -1
upstream: syscall.c do_mknod() - am_root<0 substitutes 0600 placeholder

Refs #1926.
oferchen added a commit that referenced this pull request May 5, 2026
Mirrors upstream rsync 3.4.1's am_root tri-state semantics: when
--fake-super (or daemon `fake super = yes`) is active, the receiver
must demote am_root to the negative sentinel that routes privileged
operations (chown, mknod, mkfifo) through the user.rsync.%stat
xattr placeholder branch instead of attempting real syscalls.

Extracts an `effective_am_root(super_mode, fake_super) -> bool`
helper covering the full truth table and rewires
`LocalCopyOptions::am_root()` through it. Updates the two
combined-flag tests that previously asserted the un-demoted
behavior, and adds dedicated truth-table tests at the helper.

upstream: options.c:89 - am_root tri-state, -1 is "fake-super"
upstream: clientserver.c:1102-1105 - daemon fake super = yes forces -1
upstream: syscall.c do_mknod() - am_root<0 substitutes 0600 placeholder

Refs #1926.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant