Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundle small writes on streams #2538

Merged
merged 1 commit into from
May 14, 2020
Merged

bundle small writes on streams #2538

merged 1 commit into from
May 14, 2020

Conversation

marten-seemann
Copy link
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

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