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

Make downloading of books multithreaded, controlled via -j/--jobs #97

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wildmichael
Copy link

@wildmichael wildmichael commented May 10, 2020

A simple (unscientific) timing: I downloaded the 10 first German books with -j 1 and -j 4:

Single-threaded: 7m48s
Four threads: 2m41s

This is a factor of 2.9 faster.

@wildmichael wildmichael force-pushed the feature/parallel-downloads branch from 2a8f846 to 2b5b76f Compare May 10, 2020 14:04
@wildmichael wildmichael force-pushed the feature/parallel-downloads branch from 2b5b76f to 7ae9db2 Compare May 10, 2020 14:14
@alexgand
Copy link
Owner

Hi @wildmichael great work here! But for the sake of simplicity (and to not over demand springer servers), I prefer to leave the code single threaded. Thanks, though.

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.

2 participants