Skip to content

[mypyc] Optimize calls of final methods in classes allowing interpreted subclasses - #22051

Open
p-sawicki wants to merge 3 commits into
python:masterfrom
p-sawicki:optimize-final-methods-allowed-interpreted-subclasses
Open

p-sawicki wants to merge 3 commits into
python:masterfrom
p-sawicki:optimize-final-methods-allowed-interpreted-subclasses

Conversation

@p-sawicki

Copy link
Copy Markdown
Collaborator

Transform method calls of methods annotated with @final in native classes that allow interpreted subclasses to direct calls of their C functions instead of going through the vtable.

This reduced the call time by up to 30% depending on method type in microbenchmarks.

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