You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Minor Performance Regression Initializing threading.Event #96349
My understanding is that the new zero-cost exceptions make try/except blocks significantly faster when an exception isn't thrown, but don't help when the exception is actually thrown.
For Condition objects, I think it would likely be easy to avoid this minor slowdown by using hasattr() instead of the try/except blocks, and it would also be more concise.
Your environment
CPython versions tested on: 3.10, 3.12
Operating system and architecture: Ubuntu 20.04, x86_64
Activity
gh-96349: fix minor performance regression initializing threading.Eve…