Skip to content

Split oversized test modules into smaller parts - #1551

Closed
oferchen wants to merge 1 commit into
masterfrom
prepare-for-production-release-optimization
Closed

oferchen wants to merge 1 commit into
masterfrom
prepare-for-production-release-optimization

Conversation

@oferchen

@oferchen oferchen commented Oct 29, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • split the core client test module into reusable include! parts so each Rust source stays within the enforced line limits
  • decomposed the daemon test module into multiple part files to avoid oversized sources while keeping shared helpers in one place
  • partitioned the transport negotiation tests into manageable chunks under the hygiene threshold

Testing

  • cargo check

@oferchen oferchen closed this Oct 29, 2025
@oferchen
oferchen deleted the prepare-for-production-release-optimization branch October 29, 2025 17:44
oferchen added a commit that referenced this pull request May 7, 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 May 7, 2026
#3887)

Adds a runtime profile plan complementing the static analysis: workload
spec, perf counters, flame-graph regions to inspect, and a decision
table for keep / tune CAPACITY_MULTIPLIER / replace BTreeMap.
oferchen added a commit that referenced this pull request May 17, 2026
) (#4206)

* bench(engine): decompose parallel dispatch overhead at 100K items

Add a Criterion bench that isolates each of the three dispatch-time
costs the concurrent delta pipeline pays at 100K-file scale:

- thread_spawn_only: pure OS thread lifecycle, swept over {1, 4, 8, 16}
- channel_only: bounded crossbeam work_queue send/recv with no workers
- reorderbuffer_only: ReorderBuffer insert + drain on a shuffled sequence

Each group pre-allocates inputs outside the timed section and reports
throughput via Throughput::Elements(100_000) so cells produce comparable
ops/sec figures. The top-of-file module doc cross-references the
existing reorder cache, sync-channel, and memory benches and names the
optimisation tracks (lock-free MPSC, per-thread pools, buffer slab) the
results will steer.

Refs #1551

* style(engine): avoid clippy doc list false positive in bench
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 May 18, 2026
#3887)

Adds a runtime profile plan complementing the static analysis: workload
spec, perf counters, flame-graph regions to inspect, and a decision
table for keep / tune CAPACITY_MULTIPLIER / replace BTreeMap.
oferchen added a commit that referenced this pull request May 18, 2026
) (#4206)

* bench(engine): decompose parallel dispatch overhead at 100K items

Add a Criterion bench that isolates each of the three dispatch-time
costs the concurrent delta pipeline pays at 100K-file scale:

- thread_spawn_only: pure OS thread lifecycle, swept over {1, 4, 8, 16}
- channel_only: bounded crossbeam work_queue send/recv with no workers
- reorderbuffer_only: ReorderBuffer insert + drain on a shuffled sequence

Each group pre-allocates inputs outside the timed section and reports
throughput via Throughput::Elements(100_000) so cells produce comparable
ops/sec figures. The top-of-file module doc cross-references the
existing reorder cache, sync-channel, and memory benches and names the
optimisation tracks (lock-free MPSC, per-thread pools, buffer slab) the
results will steer.

Refs #1551

* style(engine): avoid clippy doc list false positive in bench
oferchen added a commit that referenced this pull request May 18, 2026
) (#4206)

* bench(engine): decompose parallel dispatch overhead at 100K items

Add a Criterion bench that isolates each of the three dispatch-time
costs the concurrent delta pipeline pays at 100K-file scale:

- thread_spawn_only: pure OS thread lifecycle, swept over {1, 4, 8, 16}
- channel_only: bounded crossbeam work_queue send/recv with no workers
- reorderbuffer_only: ReorderBuffer insert + drain on a shuffled sequence

Each group pre-allocates inputs outside the timed section and reports
throughput via Throughput::Elements(100_000) so cells produce comparable
ops/sec figures. The top-of-file module doc cross-references the
existing reorder cache, sync-channel, and memory benches and names the
optimisation tracks (lock-free MPSC, per-thread pools, buffer slab) the
results will steer.

Refs #1551

* style(engine): avoid clippy doc list false positive in bench
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.
oferchen added a commit that referenced this pull request Aug 24, 2026
#3887)

Adds a runtime profile plan complementing the static analysis: workload
spec, perf counters, flame-graph regions to inspect, and a decision
table for keep / tune CAPACITY_MULTIPLIER / replace BTreeMap.
oferchen added a commit that referenced this pull request Aug 24, 2026
) (#4206)

* bench(engine): decompose parallel dispatch overhead at 100K items

Add a Criterion bench that isolates each of the three dispatch-time
costs the concurrent delta pipeline pays at 100K-file scale:

- thread_spawn_only: pure OS thread lifecycle, swept over {1, 4, 8, 16}
- channel_only: bounded crossbeam work_queue send/recv with no workers
- reorderbuffer_only: ReorderBuffer insert + drain on a shuffled sequence

Each group pre-allocates inputs outside the timed section and reports
throughput via Throughput::Elements(100_000) so cells produce comparable
ops/sec figures. The top-of-file module doc cross-references the
existing reorder cache, sync-channel, and memory benches and names the
optimisation tracks (lock-free MPSC, per-thread pools, buffer slab) the
results will steer.

Refs #1551

* style(engine): avoid clippy doc list false positive in bench
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