Replies: 1 comment 1 reply
-
@Alex-ley Thanks for your input! I actually have not heard about pathos but I will gladly look into it. Alternatively, it should also be possible to use a custom serializer. However, my biggest issue so far was the ultra-slow allocation of the process pool. So I was thinking about implementing ray. ray also uses a faster serialization and would solve the process allocation but doesn't work well with jupyter notebooks (which I use a lot). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
You mentioned that multiprocessing uses Pickle and that has some limitations. Have you heard of Pathos (https://github.com/uqfoundation/pathos, which uses dill for serializing python objects)? Dill allows serializing of inner scope functions with closures etc. as well as lambda functions and class methods etc.
It could be a cool option to re-write this using that?
Beta Was this translation helpful? Give feedback.
All reactions