n0-computer / n0-computer/sendme

Duplicate download of small files

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.2k
Forks
78
PR merge metrics
No merged PRs in 30d

Description

Currently we download the last chunk of each file once to get the verified size, and then again download them during the actual download. This is 1 KiB of overhead per file - no big deal in many cases, but will be noticeable if you have lots of tiny files.

We could avoid that by writing the chunk we download for the size info.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect the download flow to find where the last chunk is fetched for verified size and where the file is downloaded again. Reuse the size-check chunk during the actual download so each file's final chunk is transferred once; done when the duplicate 1 KiB download is eliminated without changing file contents or verified sizes.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.