Boost logo

Boost :

Subject: Re: [boost] [Block Pointer] Up to 600% faster than Shared Pointer
From: Phil Bouchard (philippeb8_at_[hidden])
Date: 2016-03-13 13:02:46


On 03/13/2016 12:51 PM, Glen Fernandes wrote:
> On Sun, Mar 13, 2016 at 12:44 PM, Phil Bouchard <philippeb8_at_[hidden]> wrote:
>>
>> unique_ptr (new): 47.7686
>> unique_ptr (make_unique): 46.8545
>> shared_ptr (new): 77.8261
>> shared_ptr (make_shared): 50.8072
>> shared_ptr (make_shared_alloc_noinit): 33.021
>> block_ptr (new): 69.6554
>>
>>
>
> Excellent.
>
> The wording you want to use inside the parenthesis is better expressed
> as "allocate_shared_noinit" (instead of "make_shared_alloc_noinit").

Thanks for your help.

So block_ptr<> wouldn't be a drop-in replacement for shared_ptr<> but an
add-on for:
- complex containers,
- neural networks,
- C# / Java / Javascript engines,
- etc.

Regards,
-Phil


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk