Repository navigation
Fix unused imports in daemon crate - #1682
Merged
Merged
Conversation
3 tasks
oferchen
added a commit
that referenced
this pull request
May 16, 2026
Add criterion microbench under crates/transfer/benches profiling four result-collection strategies (shared Arc<Mutex<Vec>>, sharded Mutex<Vec> by rayon worker id, crossbeam SegQueue, crossbeam unbounded channel) over 100K items at 1/4/8/16 rayon worker counts. Throughput is reported in elements/sec so the bench output names the worker count at which the single shared mutex saturates. The shipping parallel-stat path in crates/transfer/src/parallel_io.rs does not use Arc<Mutex<Vec>>; it collects via into_par_iter().map(f).collect(), which delegates to rayon's lock-free reducer. Document this in docs/audits/parallel-stat-collection.md and keep the microbench as the baseline against which any future PR that proposes reintroducing a shared mutex on this path must be measured (tracked under #1192, #1271, #1297, #1370, #1682).
oferchen
added a commit
that referenced
this pull request
May 16, 2026
… (#4170) * chore(bench): add parallel-stat collector contention microbench Add criterion microbench under crates/transfer/benches profiling four result-collection strategies (shared Arc<Mutex<Vec>>, sharded Mutex<Vec> by rayon worker id, crossbeam SegQueue, crossbeam unbounded channel) over 100K items at 1/4/8/16 rayon worker counts. Throughput is reported in elements/sec so the bench output names the worker count at which the single shared mutex saturates. The shipping parallel-stat path in crates/transfer/src/parallel_io.rs does not use Arc<Mutex<Vec>>; it collects via into_par_iter().map(f).collect(), which delegates to rayon's lock-free reducer. Document this in docs/audits/parallel-stat-collection.md and keep the microbench as the baseline against which any future PR that proposes reintroducing a shared mutex on this path must be measured (tracked under #1192, #1271, #1297, #1370, #1682). * chore: sync Cargo.lock after dev-dep addition
oferchen
added a commit
that referenced
this pull request
May 17, 2026
Adds drain_parallel_alternatives benchmark comparing three fan-in strategies on the WorkQueueReceiver drain path: the current sharded Mutex<Vec> indexed by rayon thread index, a per-thread Vec with final concat (no mutex), and a crossbeam_channel MPSC drain. Runs at 10K and 100K items across 4, 8, and 16 rayon workers, reporting throughput in elements per second so reviewers can compare per-iteration cost directly. Pre-allocates DeltaWork items outside the timed section, isolates each worker count in a private rayon pool, and shares the same simulated per-item compute across strategies so the only delta between groups is the collector itself. Closes the measurement gap that #1681 needs to decide whether the current sharded Mutex<Vec> warrants replacement (#1682, refs #4170 / #4173 / #4203).
oferchen
added a commit
that referenced
this pull request
May 17, 2026
Adds drain_parallel_alternatives benchmark comparing three fan-in strategies on the WorkQueueReceiver drain path: the current sharded Mutex<Vec> indexed by rayon thread index, a per-thread Vec with final concat (no mutex), and a crossbeam_channel MPSC drain. Runs at 10K and 100K items across 4, 8, and 16 rayon workers, reporting throughput in elements per second so reviewers can compare per-iteration cost directly. Pre-allocates DeltaWork items outside the timed section, isolates each worker count in a private rayon pool, and shares the same simulated per-item compute across strategies so the only delta between groups is the collector itself. Closes the measurement gap that #1681 needs to decide whether the current sharded Mutex<Vec> warrants replacement (#1682, refs #4170 / #4173 / #4203).
oferchen
added a commit
that referenced
this pull request
May 17, 2026
Adds drain_parallel_alternatives benchmark comparing three fan-in strategies on the WorkQueueReceiver drain path: the current sharded Mutex<Vec> indexed by rayon thread index, a per-thread Vec with final concat (no mutex), and a crossbeam_channel MPSC drain. Runs at 10K and 100K items across 4, 8, and 16 rayon workers, reporting throughput in elements per second so reviewers can compare per-iteration cost directly. Pre-allocates DeltaWork items outside the timed section, isolates each worker count in a private rayon pool, and shares the same simulated per-item compute across strategies so the only delta between groups is the collector itself. Closes the measurement gap that #1681 needs to decide whether the current sharded Mutex<Vec> warrants replacement (#1682, refs #4170 / #4173 / #4203).
oferchen
added a commit
that referenced
this pull request
May 18, 2026
… (#4170) * chore(bench): add parallel-stat collector contention microbench Add criterion microbench under crates/transfer/benches profiling four result-collection strategies (shared Arc<Mutex<Vec>>, sharded Mutex<Vec> by rayon worker id, crossbeam SegQueue, crossbeam unbounded channel) over 100K items at 1/4/8/16 rayon worker counts. Throughput is reported in elements/sec so the bench output names the worker count at which the single shared mutex saturates. The shipping parallel-stat path in crates/transfer/src/parallel_io.rs does not use Arc<Mutex<Vec>>; it collects via into_par_iter().map(f).collect(), which delegates to rayon's lock-free reducer. Document this in docs/audits/parallel-stat-collection.md and keep the microbench as the baseline against which any future PR that proposes reintroducing a shared mutex on this path must be measured (tracked under #1192, #1271, #1297, #1370, #1682). * chore: sync Cargo.lock after dev-dep addition
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Adds drain_parallel_alternatives benchmark comparing three fan-in strategies on the WorkQueueReceiver drain path: the current sharded Mutex<Vec> indexed by rayon thread index, a per-thread Vec with final concat (no mutex), and a crossbeam_channel MPSC drain. Runs at 10K and 100K items across 4, 8, and 16 rayon workers, reporting throughput in elements per second so reviewers can compare per-iteration cost directly. Pre-allocates DeltaWork items outside the timed section, isolates each worker count in a private rayon pool, and shares the same simulated per-item compute across strategies so the only delta between groups is the collector itself. Closes the measurement gap that #1681 needs to decide whether the current sharded Mutex<Vec> warrants replacement (#1682, refs #4170 / #4173 / #4203).
oferchen
added a commit
that referenced
this pull request
May 18, 2026
… (#4170) * chore(bench): add parallel-stat collector contention microbench Add criterion microbench under crates/transfer/benches profiling four result-collection strategies (shared Arc<Mutex<Vec>>, sharded Mutex<Vec> by rayon worker id, crossbeam SegQueue, crossbeam unbounded channel) over 100K items at 1/4/8/16 rayon worker counts. Throughput is reported in elements/sec so the bench output names the worker count at which the single shared mutex saturates. The shipping parallel-stat path in crates/transfer/src/parallel_io.rs does not use Arc<Mutex<Vec>>; it collects via into_par_iter().map(f).collect(), which delegates to rayon's lock-free reducer. Document this in docs/audits/parallel-stat-collection.md and keep the microbench as the baseline against which any future PR that proposes reintroducing a shared mutex on this path must be measured (tracked under #1192, #1271, #1297, #1370, #1682). * chore: sync Cargo.lock after dev-dep addition
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Adds drain_parallel_alternatives benchmark comparing three fan-in strategies on the WorkQueueReceiver drain path: the current sharded Mutex<Vec> indexed by rayon thread index, a per-thread Vec with final concat (no mutex), and a crossbeam_channel MPSC drain. Runs at 10K and 100K items across 4, 8, and 16 rayon workers, reporting throughput in elements per second so reviewers can compare per-iteration cost directly. Pre-allocates DeltaWork items outside the timed section, isolates each worker count in a private rayon pool, and shares the same simulated per-item compute across strategies so the only delta between groups is the collector itself. Closes the measurement gap that #1681 needs to decide whether the current sharded Mutex<Vec> warrants replacement (#1682, refs #4170 / #4173 / #4203).
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
… (#4170) * chore(bench): add parallel-stat collector contention microbench Add criterion microbench under crates/transfer/benches profiling four result-collection strategies (shared Arc<Mutex<Vec>>, sharded Mutex<Vec> by rayon worker id, crossbeam SegQueue, crossbeam unbounded channel) over 100K items at 1/4/8/16 rayon worker counts. Throughput is reported in elements/sec so the bench output names the worker count at which the single shared mutex saturates. The shipping parallel-stat path in crates/transfer/src/parallel_io.rs does not use Arc<Mutex<Vec>>; it collects via into_par_iter().map(f).collect(), which delegates to rayon's lock-free reducer. Document this in docs/audits/parallel-stat-collection.md and keep the microbench as the baseline against which any future PR that proposes reintroducing a shared mutex on this path must be measured (tracked under #1192, #1271, #1297, #1370, #1682). * chore: sync Cargo.lock after dev-dep addition
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Adds drain_parallel_alternatives benchmark comparing three fan-in strategies on the WorkQueueReceiver drain path: the current sharded Mutex<Vec> indexed by rayon thread index, a per-thread Vec with final concat (no mutex), and a crossbeam_channel MPSC drain. Runs at 10K and 100K items across 4, 8, and 16 rayon workers, reporting throughput in elements per second so reviewers can compare per-iteration cost directly. Pre-allocates DeltaWork items outside the timed section, isolates each worker count in a private rayon pool, and shares the same simulated per-item compute across strategies so the only delta between groups is the collector itself. Closes the measurement gap that #1681 needs to decide whether the current sharded Mutex<Vec> warrants replacement (#1682, refs #4170 / #4173 / #4203).
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
-D warningsTesting