Skip to content

perf: write QUIC payloads through the lsquic pointer overload - #2908

Draft
richard-ramos wants to merge 1 commit into
masterfrom
perf/quic-write-pointer
Draft

perf: write QUIC payloads through the lsquic pointer overload#2908
richard-ramos wants to merge 1 commit into
masterfrom
perf/quic-write-pointer

Conversation

@richard-ramos

Copy link
Copy Markdown
Member

No description provided.

`QuicStream.write` takes `bytes: sink seq[byte]`, so the payload already
lives in this method's async environment for the duration of the call.
That is exactly the lifetime lsquic's pointer overload requires, so the
buffer can be lent to it instead of copied into lsquic's own environment.

Removes one copy of every outbound QUIC payload.

Requires lsquic >= 0.7.1 for the overload.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: new

Development

Successfully merging this pull request may close these issues.

1 participant