Skip to content

docs(audits): parallel dispatch overhead profile (#1551) - #3845

Merged
oferchen merged 1 commit into
masterfrom
docs/parallel-dispatch-overhead-1551
May 7, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/parallel-dispatch-overhead-1551

Conversation

@oferchen

@oferchen oferchen commented May 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Audit doc at docs/audits/parallel-dispatch-overhead.md (task Split oversized test modules into smaller parts #1551) profiling per-file overhead of the receiver-side parallel delta pipeline at 100K and 1M files.
  • Walks the work_queue + DeltaConsumer + ReorderBuffer dispatch path, quantifies thread-pool spawn (one-time), crossbeam channel send/recv, ring-buffer insert/drain, and mpsc hand-off costs per file.
  • Identifies the cross-over threshold (currently DEFAULT_PARALLEL_THRESHOLD = 64) below which parallel dispatch is a net loss, with three regimes (< 32, 32-128, > 128).
  • Proposes five wire-compatible reductions: thread-local accumulators in drain_parallel, lock-free SPSC reorder variant, pre-sized per-worker buckets, redo-path clone removal, and an adaptive threshold based on observed per-file work.

Test plan

  • Doc fits within the 350-line cap.
  • No em-dashes; no references to internal tooling.
  • Cites task Split oversized test modules into smaller parts #1551 and uses docs(audits): prefix.
  • Cross-references existing audits (reorder-buffer-memory-100k, transfer-hot-path-channel-overhead-static).

Static analysis of per-file overhead in the receiver-side parallel delta
pipeline (work_queue + DeltaConsumer + ReorderBuffer) at 100K and 1M files.
Identifies the cross-over threshold below which dispatch is a net loss and
proposes five wire-compatible reductions: thread-local accumulators in
drain_parallel, lock-free SPSC reorder variant, pre-sized buckets in the
streaming path, redo-path clone removal, and an adaptive threshold.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 7, 2026
@oferchen
oferchen merged commit 320fcf4 into master May 7, 2026
8 checks passed
@oferchen
oferchen deleted the docs/parallel-dispatch-overhead-1551 branch May 8, 2026 03:50
oferchen added a commit that referenced this pull request May 18, 2026
Static analysis of per-file overhead in the receiver-side parallel delta
pipeline (work_queue + DeltaConsumer + ReorderBuffer) at 100K and 1M files.
Identifies the cross-over threshold below which dispatch is a net loss and
proposes five wire-compatible reductions: thread-local accumulators in
drain_parallel, lock-free SPSC reorder variant, pre-sized buckets in the
streaming path, redo-path clone removal, and an adaptive threshold.
oferchen added a commit that referenced this pull request Aug 24, 2026
Static analysis of per-file overhead in the receiver-side parallel delta
pipeline (work_queue + DeltaConsumer + ReorderBuffer) at 100K and 1M files.
Identifies the cross-over threshold below which dispatch is a net loss and
proposes five wire-compatible reductions: thread-local accumulators in
drain_parallel, lock-free SPSC reorder variant, pre-sized buckets in the
streaming path, redo-path clone removal, and an adaptive threshold.
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