-
Notifications
You must be signed in to change notification settings - Fork 319
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
Concurrency and parallelism. #272
Comments
I don't know much about parallelism in python but the pathos (https://github.com/uqfoundation/pathos) and corresponding dill (https://github.com/uqfoundation/dill) projects might be interesting to look at? It's a kind of fork from the python multiprocessing library and fixes a lot of pickling issues among others. |
Can you please explain what you mean by pickling issues? What is actually pickled currently? |
@akhmerov multiprocessing, in use now, uses Pickle to pass objects to the child processes. The entire server architecture is build to avoid pickling, which seems a bit brittle because of the need of proxying objects. |
Sure, but what objects are passed around? The instruments? I imagine a much more sustainable approach would be to instead create all these objects in other processes/workers. |
The architecture implemented at the moment is showing some issues that are non trivial to fix:
Need to:
And then carefully design how we want to do concurrency and parallelism:
Notes:
The text was updated successfully, but these errors were encountered: