Skip to content
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

Nogil and cleanup #16

Merged
merged 9 commits into from
Nov 3, 2024
Merged

Nogil and cleanup #16

merged 9 commits into from
Nov 3, 2024

Conversation

gentlegiantJGC
Copy link
Member

No description provided.

Upon further though I have decided that locking is beyond the scope of this library.
The db should only be closed by the owner and some external synchronisation should be done to ensure that nothing is accessing the db when it is being closed.
Releasing the GIL is only useful if the function takes a little while to run.
If the function is really small the overhead to releasing the GIL can be larger than any time saved.
@gentlegiantJGC gentlegiantJGC merged commit ddae0b6 into 2.0 Nov 3, 2024
15 checks passed
@gentlegiantJGC gentlegiantJGC deleted the nogil branch November 3, 2024 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant