Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions quest/m0/ci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,4 @@ The historical samples locate candidates; they are not controlled benchmarks.
- [First shared FFI release](/quest/m0/ci/nightly-ffi-reuse.md) - condition: the backport merges and the next `moq-ffi-v*` tag runs `Release FFI`; verify the wrappers
- [Fewer BTreeMap instantiations](/quest/m0/ci/btree-keys.md) - moq-net shares BTreeMap key and value types, kept only if its CPU time drops
- [Measure moving unit tests out](/quest/m0/ci/test-layout.md) - report what moq-net would save by not compiling its library twice for unit tests
- [Halve the slowest tests' CPU](/quest/m0/ci/slow-tests.md) - the slowest 1% of tests take under half their 289 CPU-seconds, with coverage kept
25 changes: 25 additions & 0 deletions quest/m0/ci/slow-tests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# [M] Halve the slowest tests' CPU

## Goal

moq's slowest 1% of tests (103 tests, 289 of 501 test CPU-seconds in one full run)
take under half that CPU, with no loss of coverage. Before any change, freeze the
cohort by test ID from one full `cargo nextest` run and list it in this quest's PR;
measure that same set after, on the same machine. Per-test CPU is each test process's
user plus system time, not nextest's wall-clock duration.

## Plan

Decided with the maintainer on 2026-10-26, from kixelated/rust2's
[test selection report](https://github.com/kixelated/rust2/pull/69): the slowest 1%
of tests make up 57% of what either package selection or a function-level selector
would run, so cutting them beats building a selector.

- Start with moq-mux's container import tests (137 s) and moq-net's integration tests
(42 s).
- Prefer making a test cheaper: smaller fixtures, shared setup, simulated time instead
of real waits, fewer redundant cases.
- Moving a test to nightly only follows this epic's rule: evidence and an explicit
coverage tradeoff for each.

Public API: none.
1 change: 1 addition & 0 deletions quest/m2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ lite-07; bitrate enforcement is not part of this release.
- [Rust-backed @moq/net](/quest/m2/rs2ts/README.md) - measure browser baselines, complete WASM bindings, and adopt Rust behind @moq/net before the later JS-only stage
- [Front parking](/quest/m2/origin-front-parks.md) - an unroutable request waits on a front instead of re-asking on every route-table move
- [Route wakes](/quest/m2/route-wakes.md) - a route change wakes only the fronts it can move, so pool churn stops scaling with served paths
- [Flatten nested Options](/quest/m2/nested-options.md) - three moq-net functions stop building `Option<Option<_>>`, so the TS translation reaches them
- [Fewer allocations in announce fan-out](/quest/m2/announce-fanout-allocs.md) - a deep path costs no more allocations per subscriber than a shallow one
- [Keyed prefix polling](/quest/m2/keyed-prefix-polling.md) - `SubscriberDriver` polls only the prefixes a wake concerns, if a bench shows the slope
- [Route health](/quest/m2/route-health/README.md) - epoch-only active/passive track recovery over metadata-only subscriptions
Expand Down
17 changes: 17 additions & 0 deletions quest/m2/nested-options.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# [XS] Flatten nested Options for the TS translation

## Goal

`resolve_fetch_group`, `request_start`, and `Live::base` in moq-net stop building an
`Option<Option<_>>`, so kixelated/rust2's TypeScript translator can translate them.
Behavior is unchanged, and the code stays at least as clear.

## Plan

Decided with the maintainer on 2026-10-26, from kixelated/rust2's
[census fixes](https://github.com/kixelated/rust2/pull/78): rewrite these three
functions in moq rather than give the translator a second `Option`
representation. Use a named enum or an early return where it reads better, and keep
a change only if it does.

Public API: none.
Loading