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

fix: reset batch size counter #175

Merged
merged 1 commit into from
May 20, 2018
Merged

fix: reset batch size counter #175

merged 1 commit into from
May 20, 2018

Conversation

vmx
Copy link
Member

@vmx vmx commented May 18, 2018

When a batch of blocks was sent, the counter for the calculating
the size wasn't reset. After the initial batch, every message was
sent individually, which lead to a performance bottleneck. With
this change receiving larger files (> 2MiB) is about 30% faster.

When a batch of blocks was sent, the counter for the calculating
the size wasn't reset. After the initial batch, every message was
sent individually, which lead to a performance bottleneck. With
this change receiving larger files (> 2MiB) is about 30% faster.
@ghost ghost assigned vmx May 18, 2018
@ghost ghost added the status/in-progress In progress label May 18, 2018
@vmx vmx merged commit 739ad0d into master May 20, 2018
@ghost ghost removed the status/in-progress In progress label May 20, 2018
@vmx vmx deleted the fix-send-batches branch May 20, 2018 12:40
@dignifiedquire
Copy link
Member

thank you for catching this @vmx!

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.

3 participants