Skip to content

docs(design): evaluate parallel source enumeration via multi-producer WorkQueue (#1573) - #4207

Merged
oferchen merged 1 commit into
masterfrom
docs/parallel-source-enumeration-eval-1573
May 17, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/parallel-source-enumeration-eval-1573

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Adds docs/design/parallel-source-enumeration-eval.md answering task Inline protocol table validation const #1573: would multi-producer source enumeration improve receiver first-byte latency at 100K+ files?
  • Engages with the docs(audits): WorkQueueSender multi-producer usage audit (#1383) #4173 WorkQueueSender audit conclusion (single-producer is correct today) and shows the audit's ruling is unaffected by the proposed design.
  • Demonstrates that I1 instrumentation (chore: update Homebrew formula for master #2196) is the wrong instrument for the hypothesis: I1 starts at send_file_list entry, which is after enumeration completes, so enumeration latency is excluded from I1 by construction.
  • Recommends defer until a W1 benchmark (process start to first inbound flist byte) on multi-root cold-cache workloads produces evidence.

Key citations

  • crates/transfer/src/generator/file_list/mod.rs:52,70-84 - serial walk loop over base_paths
  • crates/transfer/src/generator/file_list/walk.rs:34 - walk_path single-threaded recursion
  • crates/transfer/src/generator/file_list/batch_stat.rs:38 - existing rayon parallelism (per-directory stat)
  • crates/transfer/src/generator/transfer.rs:771-783 - serial build then send_file_list
  • crates/transfer/src/generator/protocol_io.rs:206-291,517-550 - I1 (chore: update Homebrew formula for master #2196) wiring via FirstByteWriter
  • crates/engine/src/concurrent_delta/multi_producer_audit.rs:8-95 - docs(audits): WorkQueueSender multi-producer usage audit (#1383) #4173 audit

Test plan

  • Pure docs change; no source impact
  • cargo fmt --all clean
  • No em-dashes, no references to AI tooling

… WorkQueue (#1573)

Engages with the #4173 audit conclusion that WorkQueueSender stays
single-producer. Shows I1 (#2196) is the wrong instrument for the
first-byte hypothesis - enumeration runs before send_file_list entry,
so I1 excludes it by construction. Recommends defer pending a W1
benchmark (process start to first inbound flist byte) on multi-root
cold-cache workloads.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 17, 2026
@oferchen
oferchen merged commit af30748 into master May 17, 2026
8 checks passed
@oferchen
oferchen deleted the docs/parallel-source-enumeration-eval-1573 branch May 17, 2026 08:56
oferchen added a commit that referenced this pull request May 18, 2026
… WorkQueue (#1573) (#4207)

Engages with the #4173 audit conclusion that WorkQueueSender stays
single-producer. Shows I1 (#2196) is the wrong instrument for the
first-byte hypothesis - enumeration runs before send_file_list entry,
so I1 excludes it by construction. Recommends defer pending a W1
benchmark (process start to first inbound flist byte) on multi-root
cold-cache workloads.
oferchen added a commit that referenced this pull request May 18, 2026
… WorkQueue (#1573) (#4207)

Engages with the #4173 audit conclusion that WorkQueueSender stays
single-producer. Shows I1 (#2196) is the wrong instrument for the
first-byte hypothesis - enumeration runs before send_file_list entry,
so I1 excludes it by construction. Recommends defer pending a W1
benchmark (process start to first inbound flist byte) on multi-root
cold-cache workloads.
oferchen added a commit that referenced this pull request Aug 24, 2026
… WorkQueue (#1573) (#4207)

Engages with the #4173 audit conclusion that WorkQueueSender stays
single-producer. Shows I1 (#2196) is the wrong instrument for the
first-byte hypothesis - enumeration runs before send_file_list entry,
so I1 excludes it by construction. Recommends defer pending a W1
benchmark (process start to first inbound flist byte) on multi-root
cold-cache workloads.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant