You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@asyncband.apache.org by "tisonkun (via GitHub)" <gi...@apache.org> on 2026/09/09 10:59:58 UTC

[PR] refactor(mpsc): simplify unbounded channel coordination [asyncband]

tisonkun opened a new pull request, #293:
URL: https://github.com/apache/asyncband/pull/293

   ## Summary
   
   - Keep unbounded MPSC endpoint state under one mutex and replace receiver waker registration retries with a linear path. Preserve receiver-local batches, FIFO, cancellation, and incremental storage reclamation while removing the spare-segment cache.
   - Organize sender and receiver definitions with their implementations, clarify delivery and disconnection contracts, and consolidate ordering coverage at the public API boundary.
   - Add `cargo x bench --no-run` and use it in required CI. Local `cargo x bench` continues to run benchmarks on demand.
   
   Validation: `cargo x test` (499 passed), `cargo x check`, `cargo x lint`, `cargo x bench --no-run`, and Miri for MPSC and unbounded storage with four scheduling seeds. Independent review found no actionable issues.
   
   ## Design Notes
   
   The receiver still consumes its local batch without locking. Sender clone/drop now uses the shared mutex: local M4 Max measurements show about 5.5 ns additional cost per clone/drop pair and 1 ns per ready send/receive pair. Scheduled scalar batches were roughly unchanged; eight busy-polling producers were 12% slower, while eight-producer inline 1 KiB bursts were 13% faster. These are five-round local medians across 16 representative cases, with concurrent scheduling noise, rather than performance guarantees.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@asyncband.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@asyncband.apache.org
For additional commands, e-mail: commits-help@asyncband.apache.org


Re: [PR] refactor: simplify unbounded MPSC and consolidate validation [asyncband]

Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun merged PR #293:
URL: https://github.com/apache/asyncband/pull/293


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@asyncband.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@asyncband.apache.org
For additional commands, e-mail: commits-help@asyncband.apache.org