
25 May
2011
25 May
'11
5:07 p.m.
On 25/05/2011 18:11, Phil Bouchard wrote:
On 5/25/2011 8:00 AM, Nevin Liber wrote:
And what exactly is make_auto doing that is *much more* costly than a heap allocation? According to your numbers, it takes almost 2.5x longer than just a new.
The make factory functions create a temporary r-value which needs to be copied to the next l-value; this is why it is much slower.
Are you sure you're doing your benchmarks with -03?