Skip to content

Maximize CRYPTO data - #1112

Merged
djc merged 1 commit into
quinn-rs:mainfrom
Matthias247:crypto
May 4, 2021
Merged

Maximize CRYPTO data#1112
djc merged 1 commit into
quinn-rs:mainfrom
Matthias247:crypto

Conversation

@Matthias247

Copy link
Copy Markdown
Contributor

This change increases the amount of CRYPTO data sent in packets during handshakes.

Instead of reserving a fixed amount of 17 bytes for frame overhead,
we reserve the exactly required amount of bytes to encode frame type
and offset, and only 2 bytes for the frame length. This leads to an
additional 12-13 bytes of payload data being used.

This change increases the amount of `CRYPTO` data sent in packets during handshakes.

Instead of reserving a fixed amount of 17 bytes for frame overhead,
we reserve the exactly required amount of bytes to encode frame type
and offset, and only 2 bytes for the frame length. This leads to an
additional 12-13 bytes of payload data being used.

@Ralith Ralith left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Comment thread quinn-proto/src/connection/mod.rs
@djc
djc merged commit c70763d into quinn-rs:main May 4, 2021
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.

3 participants