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

Start sharing piece downloads among peers for faster completion #49

Merged
merged 3 commits into from
Nov 14, 2020

Conversation

vimpunk
Copy link
Owner

@vimpunk vimpunk commented Nov 14, 2020

Closes #45 and #48

Tested on a 50 MiB download from 2 seeds (using ./test_multi_connection_download.sh --size $(( 50 * 1024 * 1024 )) ):

  • master: avg ~25s
  • this patch: avg ~15s

~60% improvement in multi-peer downloads.

@vimpunk vimpunk merged commit 82cea62 into master Nov 14, 2020
@vimpunk vimpunk deleted the share-downloads branch November 14, 2020 21:19
@vimpunk vimpunk restored the share-downloads branch November 14, 2020 21:20
@vimpunk vimpunk deleted the share-downloads branch November 14, 2020 21:20
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.

Share a piece download among peers
1 participant