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

feat: refactor downloader #24

Merged
merged 5 commits into from
Dec 27, 2023
Merged

feat: refactor downloader #24

merged 5 commits into from
Dec 27, 2023

Conversation

wzxha
Copy link
Contributor

@wzxha wzxha commented Dec 27, 2023

重构了下载器,主要做了以下工作:

  1. 由一个文件一个下载器改为一个 client一个下载器,这样做的好处是共享并发额度,防止超过并发数导致的限制。
  2. Downloader - Task - Chunk 职责进一步分离。
  3. 优化了 cpu、内存占用、磁盘写入。
  4. 补充单元测试(但还是比较粗糙)。

@wzxha wzxha linked an issue Dec 27, 2023 that may be closed by this pull request
@wzxha wzxha merged commit c9a84b2 into main Dec 27, 2023
3 of 4 checks passed
@wzxha wzxha deleted the feat/downloader branch December 27, 2023 07:21
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.

AliyunpanDownloader 下载最大并发数不起作用
1 participant