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

Speed up ArgKind methods by changing them into top-level functions #11546

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Nov 13, 2021

Mypyc can't call enum methods as native methods. This seems to speed
up compiled mypy by around 1% (rough measurement).

Mypyc can't call enum methods as native methods. This seems to speed
up compiled mypy by around 1%.
@JukkaL
Copy link
Collaborator Author

JukkaL commented Nov 13, 2021

Related to #11547.

Copy link
Collaborator

@msullivan msullivan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is kind of a shame, but not that big of one, I suppose

@JelleZijlstra
Copy link
Member

How hard would it be to fix this in mypyc? is there an issue for it already?

@JukkaL
Copy link
Collaborator Author

JukkaL commented Nov 14, 2021

The relevant issue is mypyc/mypyc#906.

This may not be too difficult to fix. I can spend half an hour on a mypyc fix, and we can forget about this if it looks like it's not much trouble to fix it properly.

@97littleleaf11 97littleleaf11 added this to Reviewer approved in mypy Nov 25, 2021
@JelleZijlstra
Copy link
Member

Looks like we dropped this unfortunately, there's a bunch of merge conflicts now.

@AlexWaygood
Copy link
Member

AlexWaygood commented Mar 15, 2022

Three approving reviews (each on a different PR) in the space of a minute, @raghavthind2005? Impressive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
mypy
Reviewer approved
Development

Successfully merging this pull request may close these issues.

None yet

5 participants