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

Support multiprocessing for the process module #129

Open
maxbachmann opened this issue Sep 16, 2021 · 6 comments
Open

Support multiprocessing for the process module #129

maxbachmann opened this issue Sep 16, 2021 · 6 comments

Comments

@maxbachmann
Copy link
Member

All the algorithms in the process module should be fairly simple to run in parallel.

@maxbachmann
Copy link
Member Author

This is now supported for process.cdist using the workers argument.

@maxbachmann maxbachmann added this to the v2.0 milestone Nov 14, 2021
@maxbachmann maxbachmann mentioned this issue Nov 26, 2021
7 tasks
@maxbachmann maxbachmann modified the milestones: v2.0, v2.1 Jan 24, 2022
@shubhamscifi
Copy link

@maxbachmann Is multiprocessing supported in extractOne?

@maxbachmann
Copy link
Member Author

So far multiprocessing is only supported by process.cdist.

@maxbachmann maxbachmann modified the milestones: v2.1, v2.2.0 Jun 29, 2022
@maxbachmann maxbachmann removed this from the v2.5.0 milestone Aug 13, 2022
@bertsky
Copy link

bertsky commented Oct 26, 2022

So if I want multiprocessing in the 1:n scenario (process.extract), what would you recommend currently? Is using process.cdist with a single-item query going to be better than a custom loop over the scorer (turned parallel via Python multiprocessing or some other paradigm)?

@maxbachmann
Copy link
Member Author

Multiprocessing in the 1:n scenario is not really implemented in process.cdist. Currently it uses multiprocessing for the outer loop, so it has basically no effect when used on 1:n. So right now you should probably use Python multiprocessing.

@bertsky
Copy link

bertsky commented Oct 27, 2022

Understood. Thanks for the clarification!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants