Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-08-10 11:01:23


From: "Philippe A. Bouchard" <philippeb_at_[hidden]>
> Hi,
>
> Here is the proof ptr<> is faster and requires a lot less memory than
> shared_ptr<>.
>
> The results speak from themselves:
> http://groups.yahoo.com/group/boost/files/ptr/
>
> I know I don't take care of exceptions, but even with that the numbers
> start doubling or quadrupling...

Philippe, try using #define BOOST_DISABLE_THREADS to get a fair comparison.
Looking at the times, I get the feeling that shared_ptr is using the thread
safe path. Apologies if this is not the case.


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