Skip to content

Commit

Permalink
Save slicing HTTP 2 headers & data
Browse files Browse the repository at this point in the history
Motivation:

DefaultHttp2FrameWriter's always create aggregate promises and slices out of
headers and data: both could be saved while reducing the amount of pipeline traversals
in case the additional cost of creating a sliced buffer surpass the data to be written.

Modifications:

Small header and data could be copied directly in a single buffer, without any need to
create aggregate promises.

Result:

Faster small data's writes
  • Loading branch information
franz1981 committed Jan 31, 2024
1 parent b194741 commit 157a4a4
Showing 1 changed file with 256 additions and 112 deletions.

0 comments on commit 157a4a4

Please sign in to comment.