Skip to content

SwiftQUIC: Calculate mock header length by hand#54

Merged
agnosticdev merged 1 commit into
mainfrom
agnosticdev/OptimizeHeaderLength
Jul 16, 2026
Merged

SwiftQUIC: Calculate mock header length by hand#54
agnosticdev merged 1 commit into
mainfrom
agnosticdev/OptimizeHeaderLength

Conversation

@agnosticdev

Copy link
Copy Markdown
Collaborator

This is a very small performance win that I noticed while trying to optimize FrameStreamSendMetadata.
This change calculates the mockHeaderLength in FrameStreamSendMetadata by hand instead of going through the Serializer. This now allows the Swift optimizer to optimize this path entirely away. Saves about 10 megacycles.

@agnosticdev
agnosticdev merged commit ecfb8ae into main Jul 16, 2026
23 checks passed
@agnosticdev
agnosticdev deleted the agnosticdev/OptimizeHeaderLength branch July 16, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants