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

fix(profiling): Always use builtin time.sleep #1869

Merged
merged 3 commits into from Jan 30, 2023

Conversation

Zylphrex
Copy link
Member

As pointed out in #1813 (comment), gevent patches the time module and time.sleep will only release the GIL if there no other greenlets ready to run. This ensures that we always use the builtin time.sleep and not the patched version provided by gevent.

As pointed out in #1813 (comment),
gevent patches the `time` module and `time.sleep` will only release the GIL if
there no other greenlets ready to run. This ensures that we always use the
builtin `time.sleep` and not the patched version provided by `gevent`.
@Zylphrex Zylphrex requested review from sl0thentr0py, antonpirker and a team January 27, 2023 15:59
@Zylphrex Zylphrex merged commit 9d23e5f into master Jan 30, 2023
@Zylphrex Zylphrex deleted the txiao/fix/always-use-builtin-time-sleep branch January 30, 2023 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants