Skip to content

feat(perf) : Improve bounded MPSC throughput for inline 1 KiB messages - #407

Open
sanjay7178 wants to merge 2 commits into
apache:mainfrom
sanjay7178:fix-mpsc
Open

sanjay7178 wants to merge 2 commits into
apache:mainfrom
sanjay7178:fix-mpsc

Conversation

@sanjay7178

@sanjay7178 sanjay7178 commented Nov 4, 2026 •

Copy link
Copy Markdown

Summary

Reduce intermediate payload copies in bounded MPSC sends and receives while preserving delivery order, backpressure, exact capacity, and reservation behavior.

Add matched inline and boxed payload benchmarks, ready-path controls, and large-payload ownership tests covering cancellation, disconnection, and resumed sends.

Paired inline benchmark medians improved by 6–14% on Linux x86-64, with overlapping timing ranges. The larger throughput gap to Tokio remains.

closes: #401

Validation

  • cargo x test
  • cargo x check
  • cargo x lint
  • cargo x bench -- --test
  • Repeated fixed-workload benchmarks with ordinary, inline, and boxed payloads, including capacity-one and capacity-1024 controls.

Signed-off-by: sanjay7178 <saisanjay7660@gmail.com>
@sanjay7178 sanjay7178 changed the title Improve bounded MPSC throughput for inline 1 KiB messages feat(perf) : Improve bounded MPSC throughput for inline 1 KiB messages Nov 4, 2026
@sanjay7178
sanjay7178 marked this pull request as ready for review November 5, 2026 06:15

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve bounded MPSC throughput for inline 1 KiB messages

1 participant