3 ms·
There's an opportunity to avoid copying certain values due to move semantics, but last I checked it doesn't work yet because of LLVM. But it could one day: htt
by brundolf 5y ago
There's an opportunity to avoid copying certain values due to move semantics, but last I checked it doesn't work yet because of LLVM. But it could one day:
https://stackoverflow.com/questions/38571270/can-rust-optimise-away-the-bit-wise-copy-during-move-of-an-object-someday#38571602 https://stackoverflow.com/questions/38571270/can-rust-optimi...
Edit: This answer is pretty old, so it may have changed by now, but I couldn't find anything more recent in a quick search
- khuey 5y agoThat specific optimization still does not happen.