diff options
| author | Milian Wolff <mail@milianw.de> | 2016-01-15 13:17:29 (GMT) |
|---|---|---|
| committer | Stephen Kelly <steveire@gmail.com> | 2016-01-20 20:20:55 (GMT) |
| commit | f9599ed42f5bfda35b98936257423f00e260498f (patch) | |
| tree | d6232fedc91e9a4313d7c3ccb4b1d2d2e905010a /Tests/Tutorial/Step5/MathFunctions/mysqrt.cxx | |
| parent | 275f2a85b21d781e237dd22252261a0a62d9879b (diff) | |
| download | CMake-f9599ed42f5bfda35b98936257423f00e260498f.zip CMake-f9599ed42f5bfda35b98936257423f00e260498f.tar.gz CMake-f9599ed42f5bfda35b98936257423f00e260498f.tar.bz2 | |
Remove temporary allocations by extending the lifetime of the retval.
See also Herb Sutter's article on the "most important const":
http://herbsutter.com/2008/01/01/gotw-88-a-candidate-for-the-most-important-const/
When running the CMake daemon on the KDevelop build dir, this removes
some hundreds of thousands of temporary allocations.
This hotspot was found with heaptrack.
Diffstat (limited to 'Tests/Tutorial/Step5/MathFunctions/mysqrt.cxx')
0 files changed, 0 insertions, 0 deletions
