-
Notifications
You must be signed in to change notification settings - Fork 64
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
Any known threading/GIL issues? #108
Comments
Not as far as I know. Let me know if you have any specific issues. |
so do we drop GIL when using JuliaCall? One limitation from JuliaPy is that it doesn't drop GIL, so it's slow when trying to Julia via it as backend of some Python packge |
Yeah calling into Julia from Julia doesn't unlock the GIL. This is because the Julia code could well call back into Python, which would require automatically relocking the GIL, which is all quite complicated and probably slow in general. If you can guarantee your Julia code doesn't call back into Python, you can release the GIL yourself. A future version of JuliaCall will allow something like |
I don't think you can drop GIL from within normal Python |
Sure but you can drop it in the Julia code that you're calling. |
how do I do that? "host" is Python, they're using calling Julia function for performance |
Compared to e.g. PyCall, FYI: JuliaPy/PyCall.jl#882
The text was updated successfully, but these errors were encountered: