Repository navigation
perf: use SHORT_SUM_LENGTH for phase 1 checksums in receiver - #2567
Merged
Merged
Conversation
Phase 1 now uses SHORT_SUM_LENGTH (2 bytes) instead of MAX_SUM_LENGTH (16 bytes) for signature checksums, matching upstream generator.c:2157. Phase 2 redo switches to full MAX_SUM_LENGTH (16 bytes) for maximum collision resistance, matching upstream generator.c:2163. Applied to both run_pipelined and run_pipelined_incremental paths.
oferchen
added a commit
that referenced
this pull request
May 1, 2026
Phase 1 now uses SHORT_SUM_LENGTH (2 bytes) instead of MAX_SUM_LENGTH (16 bytes) for signature checksums, matching upstream generator.c:2157. Phase 2 redo switches to full MAX_SUM_LENGTH (16 bytes) for maximum collision resistance, matching upstream generator.c:2163. Applied to both run_pipelined and run_pipelined_incremental paths.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
Phase 1 now uses SHORT_SUM_LENGTH (2 bytes) instead of MAX_SUM_LENGTH (16 bytes) for signature checksums, matching upstream generator.c:2157. Phase 2 redo switches to full MAX_SUM_LENGTH (16 bytes) for maximum collision resistance, matching upstream generator.c:2163. Applied to both run_pipelined and run_pipelined_incremental paths.
4 tasks
oferchen
added a commit
that referenced
this pull request
May 22, 2026
…ng parallel threshold (PIP-4) Validates the parallel-receive-delta dispatch path through two complementary mechanisms (PIP-4 / #2567): Runtime override (Part A): `OC_RSYNC_FORCE_PARALLEL=<non-empty>` now short-circuits `ReceiverContext::dispatch_receiver_strategy` and unconditionally selects `ReceiverStrategy::Parallel`, enabling ad-hoc debugging of the parallel apply path without crossing the file-count / total-bytes thresholds. When the `parallel-receive-delta` feature is compiled out, the override logs `parallel_unavailable` under GENR and falls back to Sequential so telemetry never claims a path the binary cannot take. The toggle is intentionally not surfaced on the CLI. Interop coverage (Part B): adds the `parallel-threshold-trip` scenario to the comprehensive interop matrix. The scenario augments the source tree with 120 tiny files (well above `PARALLEL_RECEIVE_FILE_COUNT_THRESHOLD` = 100, well under the 64 MiB byte cutoff and tiny in absolute size so CI time stays low) and validates a byte-identical destination. The new scenario gives the parallel path permanent CI coverage that the existing ~260 KB / 19-file comprehensive payload never exercised. Unit tests use the shared `platform::env::EnvGuard` fixture with a module-local mutex to serialise every test that touches the env var.
oferchen
added a commit
that referenced
this pull request
May 22, 2026
…ng parallel threshold (PIP-4) (#4720) * feat(transfer): force-parallel env override + interop scenario crossing parallel threshold (PIP-4) Validates the parallel-receive-delta dispatch path through two complementary mechanisms (PIP-4 / #2567): Runtime override (Part A): `OC_RSYNC_FORCE_PARALLEL=<non-empty>` now short-circuits `ReceiverContext::dispatch_receiver_strategy` and unconditionally selects `ReceiverStrategy::Parallel`, enabling ad-hoc debugging of the parallel apply path without crossing the file-count / total-bytes thresholds. When the `parallel-receive-delta` feature is compiled out, the override logs `parallel_unavailable` under GENR and falls back to Sequential so telemetry never claims a path the binary cannot take. The toggle is intentionally not surfaced on the CLI. Interop coverage (Part B): adds the `parallel-threshold-trip` scenario to the comprehensive interop matrix. The scenario augments the source tree with 120 tiny files (well above `PARALLEL_RECEIVE_FILE_COUNT_THRESHOLD` = 100, well under the 64 MiB byte cutoff and tiny in absolute size so CI time stays low) and validates a byte-identical destination. The new scenario gives the parallel path permanent CI coverage that the existing ~260 KB / 19-file comprehensive payload never exercised. Unit tests use the shared `platform::env::EnvGuard` fixture with a module-local mutex to serialise every test that touches the env var. * chore(transfer): sync Cargo.lock with platform dev-dependency added in PIP-4
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…ng parallel threshold (PIP-4) (#4720) * feat(transfer): force-parallel env override + interop scenario crossing parallel threshold (PIP-4) Validates the parallel-receive-delta dispatch path through two complementary mechanisms (PIP-4 / #2567): Runtime override (Part A): `OC_RSYNC_FORCE_PARALLEL=<non-empty>` now short-circuits `ReceiverContext::dispatch_receiver_strategy` and unconditionally selects `ReceiverStrategy::Parallel`, enabling ad-hoc debugging of the parallel apply path without crossing the file-count / total-bytes thresholds. When the `parallel-receive-delta` feature is compiled out, the override logs `parallel_unavailable` under GENR and falls back to Sequential so telemetry never claims a path the binary cannot take. The toggle is intentionally not surfaced on the CLI. Interop coverage (Part B): adds the `parallel-threshold-trip` scenario to the comprehensive interop matrix. The scenario augments the source tree with 120 tiny files (well above `PARALLEL_RECEIVE_FILE_COUNT_THRESHOLD` = 100, well under the 64 MiB byte cutoff and tiny in absolute size so CI time stays low) and validates a byte-identical destination. The new scenario gives the parallel path permanent CI coverage that the existing ~260 KB / 19-file comprehensive payload never exercised. Unit tests use the shared `platform::env::EnvGuard` fixture with a module-local mutex to serialise every test that touches the env var. * chore(transfer): sync Cargo.lock with platform dev-dependency added in PIP-4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SHORT_SUM_LENGTH(2 bytes) instead of 16 bytes, reducing wire overhead for initial delta transfers (upstream:generator.c:2157)MAX_SUM_LENGTH(16 bytes) for maximum collision resistance (upstream:generator.c:2163)run_pipelinedandrun_pipelined_incrementalcode pathsTest plan
cargo clippy -p transferpasses with no warnings