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
ENH: release GIL during STRtree creation #395
Comments
Ah good point, it might be that the most expensive part is actually here? So releasing the GIL here might give most of the benefit. The rest of the code in Lines 151 to 200 in ea76ac9
|
We aren't currently releasing the GIL during the creation of STRtree; this might be possible and could yield potential performance improvements in a multi-threaded environment.
In particular, the initial query against the tree after construction toward the end of
STRtree_new
should not need to hold the GIL.The text was updated successfully, but these errors were encountered: