Skip to content
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

Reuse a single (callable) extension class for all nested functions in a compilation group #1031

Open
ichard26 opened this issue Nov 4, 2023 · 0 comments
Assignees
Labels
area-functions codesize Reducing the amount/verbosity of the C code mypyc generates.

Comments

@ichard26
Copy link
Collaborator

ichard26 commented Nov 4, 2023

(Context: python/mypy#11901)

We currently generate a new callable extension class for each nested function encountered. This results in a fair bit of boilerplate that could be eliminated. In theory, it should be possible to reuse a single extension class for all nested functions in a single compilation group.

This is a prerequisite for #884.

@ichard26 ichard26 added codesize Reducing the amount/verbosity of the C code mypyc generates. area-functions labels Nov 4, 2023
@ichard26 ichard26 self-assigned this Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-functions codesize Reducing the amount/verbosity of the C code mypyc generates.
Projects
None yet
Development

No branches or pull requests

1 participant