-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
GH-108035: Remove the _PyCFrame
struct as it is no longer needed for performance.
#108036
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a nice reduction in complexity. I probably won't wait for it though, and merge #107760 first (and possibly the second and 3rd stage as well). You can then just update the _PUSH_FRAME
op code in bytecodes.c.
Since I landed gh-107760, I figured I'd merge and fix this for you. Looks like your benchmarks come out neutral, so go ahead and merge. |
Performance is in noise, maybe a tiny bit faster. |
@markshannon with |
@P403n1x87 In 3.12 and 3.13 there's still this in ceval.c:
Shouldn't that be enough to identify the
but that shouldn't be a problem for your kind of application (remind me what you're working on again?) |
@gvanrossum Thanks for bringing |
Yeah, it looks like this was mentioned in the 3.12a2 NEWS file:
|
This basically reverts the
current_frame
to the thread state as it was in 3.10.This will need a what's new and news item, once I've benchmarked it check performance is OK.