Boost logo

Boost Users :

From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2006-10-23 09:00:48


On Mon, October 23, 2006 13:57, loufoque wrote:
> Ovanes Markarian wrote:
>
>> we have some application, where boost::shared_ptr is extensively used.
>
> shared_ptr is rather slow, indeed.
> You should consider changing your design if the speed is a problem.
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

Well, I must admit, that a problem was with different loop variables set. One var (whereshared_ptr
was used) had one ZERO more in its decimal value.... What a shame! Sorry guys! But I am happy now.

Now with default macros used, shared_ptr is about 10% slower. If I use the quick allocator the
speed is only 8% slower. If I enable both macros (single-threaded and quick-allocator) shared_ptr
is quicker as an implementation without shared_ptr. My question now would be if you plan or it is
already possible to have a policy for specifying Threading and Allocator?

With Kind Regards,

Ovanes Markarian


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net