-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Inefficient codegen when extracting field from temporary object #23395
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
Comments
Does it also happen with ORC? |
Yeah, ORC is affected too, I checked before. In |
Probably related to performance issues I had with The impact of |
|
Description
The following snippet, of critical performance importance when working with sum types, generates an inefficient copy, even though it can be seen that lifetimes are bounded in such a way that the copy can become a move:
Notably, the same applies to any "last use" of a variable:
Of course, in the real world, this applies most significantly to
Option
and its ilk:Nim Version
1.6, 2.0, devel....
Current Output
No response
Expected Output
No response
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: