-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
base: master
Are you sure you want to change the base?
Conversation
Mypyc can't call enum methods as native methods. This seems to speed up compiled mypy by around 1%.
Related to #11547. |
There was a problem hiding this 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
How hard would it be to fix this in mypyc? is there an issue for it already? |
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. |
Looks like we dropped this unfortunately, there's a bunch of merge conflicts now. |
Three approving reviews (each on a different PR) in the space of a minute, @raghavthind2005? Impressive. |
Mypyc can't call enum methods as native methods. This seems to speed
up compiled mypy by around 1% (rough measurement).