Boost logo

Boost :

Subject: Re: [boost] [Block Pointer] benchmark
From: Nevin Liber (nevin_at_[hidden])
Date: 2011-05-25 11:00:32

On 25 May 2011 02:18, Phil Bouchard <philippe_at_[hidden]> 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_at_[hidden]>  (847) 691-1404

Boost list run by bdawes at, gregod at, cpdaniel at, john at