Skip to content

perf(p2p-13): optimize the data-plane fast path (#671)#5

Open
jlon wants to merge 2 commits into
p2p-11-reader-listener-lifecycle-hardeningfrom
p2p-13-data-plane-fast-path
Open

perf(p2p-13): optimize the data-plane fast path (#671)#5
jlon wants to merge 2 commits into
p2p-11-reader-listener-lifecycle-hardeningfrom
p2p-13-data-plane-fast-path

Conversation

@jlon
Copy link
Copy Markdown
Owner

@jlon jlon commented Mar 26, 2026

Summary

  • Land the 0ms-critical data-plane fast path after the redirect path is stable.
  • Keep rollout posture unchanged; this PR is performance-only and excludes adaptive logic and telemetry.

Design

  • Optimize the first redirected chunk without changing protocol semantics or fallback behavior.
  • Isolate fast-path buffer and first-chunk work from adaptive heuristics and validation assets.

Implementation

  • Avoid zeroing response buffers and stream the first data-plane chunk earlier.
  • Shape the data-plane read path for lower latency, with remote-reader adjustments only where required.

Verification

  • Run the production gate for redirected reads.
  • Check 0ms benchmark sanity and targeted redirected-read tests.

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@jlon jlon force-pushed the p2p-11-reader-listener-lifecycle-hardening branch from bd6a1a3 to 3da3eea Compare March 26, 2026 10:26
@jlon jlon force-pushed the p2p-13-data-plane-fast-path branch from a5b563a to 3efcc7a Compare March 26, 2026 10:26
@jlon jlon force-pushed the p2p-11-reader-listener-lifecycle-hardening branch from 3da3eea to a0d27ba Compare March 27, 2026 09:33
@jlon jlon force-pushed the p2p-13-data-plane-fast-path branch from 3efcc7a to 0cd5c9d Compare March 27, 2026 09:33
@jlon jlon force-pushed the p2p-11-reader-listener-lifecycle-hardening branch from a0d27ba to 50bb594 Compare March 30, 2026 00:55
@jlon jlon force-pushed the p2p-13-data-plane-fast-path branch from 0cd5c9d to c394449 Compare March 30, 2026 00:55
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