
25 May
2011
25 May
'11
3 p.m.
On 25 May 2011 02:18, Phil Bouchard <philippe@fornux.com> wrote:
On 5/24/2011 10:52 PM, Nevin Liber wrote:
Heck, even auto_ptr is significantly faster using new instead of make_shared and make_block. Simply amazing! Wait, ... how exactly did you use make_shared and make_block in the auto_ptr case?
auto_ptr uses make_auto in the make test, shared_ptr uses make_shared and block_ptr uses make_block.
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. -- Nevin ":-)" Liber <mailto:nevin@eviloverlord.com> (847) 691-1404