Skip to content

create an optimized shortcut if __code__ is seen and callable is a routine#659

Open
Vizonex wants to merge 6 commits intopytest-dev:mainfrom
Vizonex:varnames
Open

create an optimized shortcut if __code__ is seen and callable is a routine#659
Vizonex wants to merge 6 commits intopytest-dev:mainfrom
Vizonex:varnames

Conversation

@Vizonex
Copy link

@Vizonex Vizonex commented Mar 24, 2026

While in the middle of trying to create my own asynchronous callback library I came up with a more optimized approach for extracting function arguments and I wanted to see if this could be a little bit faster here since construction of inspect.signature can be a little slow depending on the circumstances.

@Vizonex Vizonex changed the title create an optimized shortcut if __signature__ is seen create an optimized shortcut if __code__ is seen and method is a routine Mar 24, 2026
@Vizonex Vizonex changed the title create an optimized shortcut if __code__ is seen and method is a routine create an optimized shortcut if __code__ is seen and callable is a routine Mar 24, 2026
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