-
Notifications
You must be signed in to change notification settings - Fork 573
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
remove multi-threaded downloading #191
remove multi-threaded downloading #191
Conversation
icloudpd/base.py
Outdated
@@ -194,7 +188,7 @@ | |||
) | |||
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also here "deprecated"
Sure, I just saw this follow-up comment about the download times: #171 (comment) So that sounds fine to me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 https://github.com/icloud-photos-downloader/icloud_photos_downloader/search?q=threads_num |
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