-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
implement named return value optimization in the frontend #788
Comments
Having this would help a bunch with the spidermonkey upgrade in servo. Spidermonkey needs us to provide pointers to structs on the stack, but we can't easily do it in the constructor function since the struct is moved when returned. We're currently using return_address() to work around this, but this doesn't scale well when constructors are nested. |
Wasn't it a mistake to move this to the RFC repo? It is just a missed optimization. I don't think it requires an RFC. |
this should be closed in favor of rust-lang/rust#32966 |
Issue by mahkoh
Monday Oct 27, 2014 at 13:24 GMT
For earlier discussion, see rust-lang/rust#18363
This issue was labelled with: I-enhancement, I-slow in the Rust repository
This function needs 2k stack space even though f is being inlined.
The text was updated successfully, but these errors were encountered: