Skip to content

bundle small writes on streams#2538

Merged
marten-seemann merged 1 commit intomasterfrom
bundle-small-writes
May 14, 2020
Merged

bundle small writes on streams#2538
marten-seemann merged 1 commit intomasterfrom
bundle-small-writes

Conversation

@marten-seemann
Copy link
Copy Markdown
Member

Fixes #2523.

Evaluated by having a for-loop do 100 20-byte writes on a stream and counting the number of packets. Before this PR, we'd send 100 packets containing STREAM frames. With this PR, this number is down to 5 packets. This is not ideal (2000 bytes could be sent in just 2 packets), but it's a massive improvement nevertheless.

@codecov-io
Copy link
Copy Markdown

codecov-io commented May 12, 2020

Codecov Report

Merging #2538 into master will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2538      +/-   ##
==========================================
+ Coverage   86.12%   86.16%   +0.03%     
==========================================
  Files         122      122              
  Lines        9542     9550       +8     
==========================================
+ Hits         8218     8228      +10     
+ Misses        985      984       -1     
+ Partials      339      338       -1     
Impacted Files Coverage Δ
send_stream.go 93.19% <100.00%> (+0.20%) ⬆️
server.go 83.59% <0.00%> (+0.61%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e7f9f7...84f7a9d. Read the comment docs.

@marten-seemann marten-seemann merged commit 1cd1c3f into master May 14, 2020
@marten-seemann marten-seemann deleted the bundle-small-writes branch May 14, 2020 04:53
@Stebalien Stebalien mentioned this pull request May 26, 2020
77 tasks
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.

bundle short writes

3 participants