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
sys.settrace sets PY_MONITORING_EVENT_BRANCH and PY_MONITORING_EVENT_EXCEPTION_HANDLED monitoring events but does not have any registered callbacks. Those two events should not generate any legacy trace events (and sys.settrace works fine without it for a long time), so we should just remove those.
This improves trace performance a bit (~3% for fib + empty tracefunc) as the events do not fire anymore.
Bug report
Bug description:
sys.settrace
setsPY_MONITORING_EVENT_BRANCH
andPY_MONITORING_EVENT_EXCEPTION_HANDLED
monitoring events but does not have any registered callbacks. Those two events should not generate any legacy trace events (andsys.settrace
works fine without it for a long time), so we should just remove those.This improves trace performance a bit (~3% for fib + empty tracefunc) as the events do not fire anymore.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: