-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
lower new()
to reference the called object instead of re-creating it with apply_type
#44664
Conversation
That's because you're lowering to:
when the fast version is
Of course ideally the system would see that the typevar is unused and move it for us. |
Found this bug along the way:
Processing constructors is hard enough that we were just dropping the type declaration! |
Whoops. |
c3ca854
to
7c36bb5
Compare
Ok hopefully works now, and I see a speedup. |
Can confirm that this addresses the performance issue. |
The subarray test failure on linux64 is weird; can't reproduce locally. |
|
…t with apply_type addresses #36384
7c36bb5
to
6be802c
Compare
addresses #36384
This makes the lowering change suggested there, but I don't see any performance differences yet. However this should go nicely together with #44656.