Re: Returning complex object or using reference [out] parameter

Tech-Archive recommends: Speed Up your PC by fixing your registry



On Mon, 05 Feb 2007 12:42:39 -0500, Joseph M. Newcomer
<newcomer@xxxxxxxxxxxx> wrote:

I was told about C++ RVO (Return Value Optimization), but it seems to
me that RVO only applies to inline functions, and maybe for not very
complex output paramters.
****
I can't find anything by searching for 'RVO' in the MSDN, but this technology is easily 35
years old (we first implemented it in the Bliss-11 compiler at CMU, where in its simplest
form it becomes 'Value register targeting', but the extension is fairly obvious). I've
certainly seen it for simple values outside inline functions, but I don't know about its
use for complex values, although as a compiler writer I envision how it would be done.

Joe: about C++ RVO, I was directed by Google to this:

http://www.cs.cmu.edu/~gilpin/c++/performance.html

.