Skip to content

Conversation

@Mark-Simulacrum
Copy link
Collaborator

Description of changes:

This lets callers who have "headers" associated with each datagram in separate buffers avoid needing to copy into a buffer just for the write call (which results in another copy into the destination).

No intended functional changes, only more efficient callers.

Callouts

The EncoderValue implementation for slices isn't using the s2n-quic-core vectored copy implementation - it seems like that would require a new write_vectored_slice or similar. Open to writing that but maybe I missed some implementation that already exists and I can just call into.

Testing:

No tests added - I was looking for some UDP datagram tests but nothing seems to call write_datagram today? So I assume this works.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This lets callers who have "headers" associated with each datagram in
separate buffers avoid needing to copy into a buffer just for the write
call (which results in another copy into the destination).
@Mark-Simulacrum Mark-Simulacrum force-pushed the vectored-datagram-write branch from 123ff1d to bc3742d Compare June 13, 2023 20:44
@Mark-Simulacrum
Copy link
Collaborator Author

(Squashed commits, no changes)

@camshaft camshaft merged commit 6865f60 into aws:main Jun 13, 2023
@Mark-Simulacrum Mark-Simulacrum deleted the vectored-datagram-write branch June 14, 2023 20:53
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.

2 participants