-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Release GIL inside optimize? #839
Comments
I have to admit that I did so far not think about this that much. Mostly used the Python binding so far to quickly prototype and visualize some data. Reading the documentation (https://pybind11.readthedocs.io/en/stable/advanced/misc.html#global-interpreter-lock-gil) I believe we can release the GIL. Would be great if you can test the branch and provide feedback here. Thanks. |
Are wheels saved anywhere that I could grab and install? |
Not for updated g2o. You'd have to build yourself. Probably best done in a python venv.
|
Wondering if there any reason to retain the GIL in this function?
g2o/python/core/py_sparse_optimizer.cpp
Line 47 in e8d3ccf
I'm running into a situation where some times an optimization can take a very long time (in the order of minutes) and because this call does not release the GIL it starves out some background threads meant for telemetry.
The text was updated successfully, but these errors were encountered: