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

Add parallelization #46

Open
Molkree opened this issue Aug 9, 2021 · 2 comments
Open

Add parallelization #46

Molkree opened this issue Aug 9, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@Molkree
Copy link
Member

Molkree commented Aug 9, 2021

Currently, all workflows just walk over files/segments consequently, so we can parallelize it nicely.
Look into multiprocessing module.

@Molkree Molkree added the enhancement New feature or request label Aug 9, 2021
@Molkree Molkree mentioned this issue Aug 9, 2021
@Apoorvgarg-creator
Copy link

Apoorvgarg-creator commented Apr 9, 2022

@Molkree There is one more python package Ray which is faster than multiprocessing.
Article1 comparing multiprocessing and Ray
Article2, article on the topic Basic Tutorial on Rays. Here is a small example of parallelization with ray and benefits of ray.
@Molkree I'd like your views on the same ?

@valentina-s
Copy link
Collaborator

@Apoorvgarg-creator Thanks for sharing the Ray's references. Seems Ray may be more useful for complex projects or where one needs shared memory. In this case the task is to processing many files separately, so it may not matter that much. Dask is another similar library which has been popular in scientific computing. Currently I think the free Github Action instance has only 2 cores? so there might not be much speedup. Parallelization may work well in conjunction with a more powerful runner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants