Skip to content

perf(polyamide): fix polyamide performance regressions - #185

Merged
encodeous merged 2 commits into
mainfrom
ac/polyamide-shared-buffers
Dec 3, 2026
Merged

encodeous merged 2 commits into
mainfrom
ac/polyamide-shared-buffers

Conversation

@encodeous

Copy link
Copy Markdown
Owner

After #164 there was a slight performance regression.

This PR introduces improved APIs:

  • Global Shared Buffers, so transports can exchange packets without extra copies
  • Improved clarity in the polyamide API

On a single core of a Ryzen 9 7900X, single-stream TCP over a direct nylon link rose from 6,057 to 6,848 Mbit/s (+13.1%) compared to #164, while nylon CPU per GB fell from 2.48 to 2.27 CPU-seconds (−8.6%).

Single core, Ryzen 9 7900X #164 This PR Change
Single-stream TCP, direct link 6,057 Mbit/s 6,848 Mbit/s +13.1%
nylon CPU per GB 2.48 CPU-s 2.27 CPU-s −8.6%

Medians of 3 × 60s iperf3 runs, interleaved, with each nylon pinned to one core.

@encodeous
encodeous merged commit 8244a7b into main Dec 3, 2026
9 checks passed
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.

1 participant