remove multi-threaded downloading#191
remove multi-threaded downloading#191AndreyNikiforov merged 6 commits intoicloud-photos-downloader:masterfrom
Conversation
icloudpd/base.py
Outdated
| @click.option( | ||
| "--threads-num", | ||
| help="Number of cpu threads (default: 1)", | ||
| help="Number of cpu threads -- depricated. To be removed in future version", |
There was a problem hiding this comment.
also here "deprecated"
|
Sure, I just saw this follow-up comment about the download times: #171 (comment) So that sounds fine to me! |
menkej
left a comment
There was a problem hiding this comment.
Fine with me - apart from the typo, but I'm currently running some tests on multithreading, so let's wait some days before we really remove it.
Current (1.6.2) multi-threaded downloading implementation has a number of shortcomings that cause a majority of issue reported for the project since I started paying more attention to it:
We did confirm in a number of tests that multi threaded downloading does not improve speed on fast and slow connections. Anybody should be able to repeat tests and validate for themselves using 1.6.2. Here are things to keep in mind while testing multi-threaded vs single-threaded:
If we are to fix/re-implement parallel downloading, we'll have to keep the following in mind:
With all that in mind, I feel it would be better to release this feature as 1.7.0, continue any multi-threaded downloading testing using 1.6.2, and revisit parallel downloading if tests show any promises and we have resources to implement parallel downloading correctly. @menkej will that work for you? |
|
@AndreyNikiforov was this feature re-added? The cli arg |
What makes you think so?
What do you mean by |
feat: removed multi-threaded downloading and added deprecation notice to --threads-num parameter #180, #188