Subject: Re: [boost] [smart_ptr] make_shared performance
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2009-01-16 16:46:35
On Fri, Jan 16, 2009 at 1:40 PM, Frank Mori Hess <frank.hess_at_[hidden]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> I've been doing a little benchmarking (trivial benchmark program attached) of
> boost::make_shared performance. With svn trunk, I don't see much improvement
> from using make_shared, in fact for large objects it is much slower. I would
> guess this is due to the increased overhead of copying sp_ms_deleter for
> large types. I wonder if anyone has any ideas for improving the situation?
Benchmarks alone don't mean much without understanding your use case.
What are you trying to do, for which boost::make_shared's performance
Reverge Studios, Inc.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk