Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hkalbasi
on Oct 14, 2023
|
parent
|
context
|
favorite
| on:
Escape analysis hates copy elision (2021)
It seems it isn't yet:
https://github.com/rust-lang/rust/issues/116744
afdbcreid
on Oct 15, 2023
[–]
It does pass this information to LLVM, in the form of the `readonly` attribute. This seems to be a bug in LLVM that does not optimize the function propely, I don't know why.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: