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

Minor cleanup #463

Merged
merged 4 commits into from
Apr 25, 2024
Merged

Minor cleanup #463

merged 4 commits into from
Apr 25, 2024

Conversation

jace
Copy link
Member

@jace jace commented Apr 18, 2024

Defer locking to the GIL instead (borrowing from the change to functools.cached_property in Python 3.12). Also, Avoid datetime.utcnow() and use a final class as a sentinel singleton.

Defer locking to the GIL instead (borrowing from the change to `functools.cached_property` in Python 3.12). Also, avoid `datetime.utcnow()` and use a final class as a sentinel singleton.
GIL dependency isn't safe here
@jace jace changed the title Don't use a model-level lock for instance-level operations Minor cleanup Apr 25, 2024
@jace jace merged commit 79e2fe3 into main Apr 25, 2024
17 of 18 checks passed
@jace jace deleted the no-global-lock branch April 25, 2024 10:47
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