Boost logo

Boost :

Subject: Re: [boost] [shifted_ptr] Review Request
From: àÒ¦Ê úÕÂÒÉÃØËÉÊ (mt.wizard_at_[hidden])
Date: 2011-04-06 13:07:08


Actually, boost::make_shared involves one dynamic_cast operation (when
getting deleter from shared_ptr object), that's why it doesn't perform
faster at all

2011/4/6, Nevin Liber <nevin_at_[hidden]>:
> On 6 April 2011 11:43, Phil Bouchard <philippe_at_[hidden]> wrote:
>
>>
>> http://www.boost.org/doc/libs/1_46_1/libs/smart_ptr/smarttests.htm
>>>>
>>>
>>>
>>> Here's another one here comparing shared_ptr<>, intrusive_ptr<> and
>> garbage collected algorithms:
>> http://hnxgc.harnixworld.com/benchmarks/GCBench/
>>
>
> Glancing at the code, I noticed that they aren't using make_shared or
> allocate_shared, which any real world high performance app would most likely
> be using just to cut the number of allocations in half. Not a great
> benchmark for this kind of thing...
> --
> Nevin ":-)" Liber <mailto:nevin_at_[hidden]> (847) 691-1404
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


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