Skip to content

implement faster version of sys._getframe in C - #776

Open
Vizonex wants to merge 2 commits into
MagicStack:masterfrom
Vizonex:sys-getframe
Open

Vizonex wants to merge 2 commits into
MagicStack:masterfrom
Vizonex:sys-getframe

Conversation

@Vizonex

@Vizonex Vizonex commented Oct 10, 2026 •

Copy link
Copy Markdown

This is an optimization I made on Winloop's end that replaces sys._getframe from a CPython version of Sys_GetFrame copied off 3.11. It should work with 3.9 since I've backported it using cpython_compat.h which is a tool by Victor which you may or may not be familiar with. Multidict uses the same tools as well as my end so this tool should be a bonus for helping maintain uvloop's C Sections in the coming decades.

If we want the new winloop.loop.Future objects here this is the first step I took to getting there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant