Uh oh!
There was an error while loading. Please reload this page.
GH-108035: Remove the _PyCFrame struct as it is no longer needed for performance. - #108036
Conversation
gvanrossum
left a comment
There was a problem hiding this comment.
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.
gvanrossum
commented
Aug 16, 2023
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. |
markshannon
commented
Aug 17, 2023
Performance is in noise, maybe a tiny bit faster. |
P403n1x87
commented
Aug 18, 2023
@markshannon with |
gvanrossum
commented
Aug 18, 2023
@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?) |
P403n1x87
commented
Aug 18, 2023
@gvanrossum Thanks for bringing |
gvanrossum
commented
Aug 19, 2023
Yeah, it looks like this was mentioned in the 3.12a2 NEWS file:
|
…nger needed for performance. (pythonGH-108036)" This reverts commit 006e44f.
This basically reverts the
current_frameto 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.