3 ms·
...yeah, I suppose he does limit the examples to just nested function calls (and assumes everything ends up in the same object file).
by tbrownaw 16y ago
...yeah, I suppose he does limit the examples to just nested function calls (and assumes everything ends up in the same object file).
- jey 16y agoNo, I'm pretty sure RVO is a feature of the calling convention, so it works across TUs (object files).
- tbrownaw 16y ago..wha? OK, re-reading this it looks like maybe he is talking strictly about return-value optimization. For some odd reason I thought he was claiming significantly more than that (such as not making copies of your pass-by-value parameters).