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
Now that we have type versions installed in #119258 . We can use the information to constant propagate through attribute loads.
This means something like
dict.fromkeys()
becomes the same as
dict_fromkeys()
Note: this is just a constant load, not an attribute lookup!
No response given
No response
The text was updated successfully, but these errors were encountered:
CC @saulshanabrook this is building off your work!
Nevermind, I forgot we yet to have a specialization for builtin class loads, so we can't do this until we add the tier 1 specialization.
For now, I can add this for tier 2 just for Python classes.
Feature or enhancement
Proposal:
Now that we have type versions installed in #119258 . We can use the information to constant propagate through attribute loads.
This means something like
dict.fromkeys()
becomes the same as
dict_fromkeys()
Note: this is just a constant load, not an attribute lookup!
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: