Refactor transport layer and enhance HTTP/2/3 performance#44
Closed
st0o0 wants to merge 20 commits into
Closed
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Introduces `System.IO.Pipelines` for efficient byte movement, replacing direct `System.Threading.Channels` interactions in the core transport logic. This change streamlines buffer management, improves performance, and forms a key part of separating the transport layer. - Migrates `ClientByteMover` to a `Pipe`-centric architecture, utilizing `IoBuffer` for `MemoryPool` integration. - Updates `ClientState` to internally manage `Pipe` instances. - Adjusts `ConnectionHandle` and `NetworkBuffer` to interoperate with the new `IoBuffer` and `Pipe` paradigm. - Increases default HTTP/2 stream window size and max frame size, and HTTP/3 QPACK table capacity for improved performance. - Removes `Servus.Akka` project reference from `TurboHTTP.csproj`.
- Adjust HTTP/2 flow control window update threshold for more efficient `WINDOW_UPDATE` frames. - Optimize HPACK dynamic table lookups for header encoding by introducing an O(1) indexed cache. - Batch multiple HTTP/2 outbound frames into a single network buffer write to reduce overhead. - Improve HTTP/3 request body encoding to support streaming for unknown content lengths, preventing excessive memory allocation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.