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

Create a download tool #4

Open
bmarwell opened this issue May 20, 2019 · 0 comments
Open

Create a download tool #4

bmarwell opened this issue May 20, 2019 · 0 comments
Milestone

Comments

@bmarwell
Copy link
Collaborator

Create a download library and a download tool.

Algorithm:

  1. Parallel (threads = 2):
    • Get the Map<byte[], ChunkInfo> from the existing file, if exists.
    • Get the header of the remote file.
  2. Parallel (threads = ?):
    • Copy existing chunks (by hash) to outputfile.chunk.#### (where #### = chunk-num).
    • Parallel (threads = 5):
      • Download missing chunks to outputfile.chunk.#### (where #### = chunk num).
  3. Merge (cat) new header + downloaded chunks.
@bmarwell bmarwell added this to the 1.0.0 milestone May 20, 2019
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

No branches or pull requests

1 participant