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
Code run with cProfile performance regression in 3.11 #93381
We could speed up cProfile a few ways. I'll try to work on a few PRs. We first need to find out why cProfile is so slow. I'm not sure if we can backport fixes. Though a 1.6x slowdown seems pretty significant.
Another update: between python 3.10 and 3.11, test_cprofile didn't slow down at all (in fact, it sped up slightly). That likely indicates that cprofile itself didn't slow down, it's likely the impact of tracing code went up instead.
Reacted by Shantanu, Einar Forselv, Michael Droettboom and Tyler Yep
Activity
Fidget-Spinner commentedon May 31, 2022
An update: I can reproduce the results that OP posted for his application. That is:
Without cProfile, there's a 10-20% speedup over 3.10.
[-]cProfile performance regression in 3.11[/-][+]Code run with cProfile performance regression in 3.11[/+]Fidget-Spinner commentedon May 31, 2022
Another update: between python 3.10 and 3.11,
test_cprofiledidn't slow down at all (in fact, it sped up slightly). That likely indicates that cprofile itself didn't slow down, it's likely the impact of tracing code went up instead.Fidget-Spinner commentedon Jul 14, 2022
This was mostly fixed in #93516. The next release (3.11b4) will have all the fixes included.