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

Threading and parallelization #3

Open
CarlinLiao opened this issue Sep 9, 2020 · 0 comments
Open

Threading and parallelization #3

CarlinLiao opened this issue Sep 9, 2020 · 0 comments

Comments

@CarlinLiao
Copy link
Member

I actually slightly disagree with this. I think you can use Python threads effectively to some extent. For example, you can do some I/O related things in the initialization in parallel (look into asyncio). Also, from what I've read, I think threads are beneficial if you are a lot of light-weight tasks at the same time. Just don't expect any more than this.

If you want to run multiple chunks in parallel then the multiprocessing library would be useful, but like Rishabh said, it might not actually be that useful for the results that you want. If performance ever does become something you care about, consider switching to C++ or Rust.

Originally posted by @pyrito in #2 (comment)

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

No branches or pull requests

1 participant