Boost logo

Boost :

Subject: Re: [boost] shared_ptr/shared_count and the cost of use counter allocation
From: Emil Dotchevski (emil_at_[hidden])
Date: 2008-09-10 12:11:32


On Wed, Sep 10, 2008 at 2:29 AM, Hendrik Schober <spamtrap_at_[hidden]> wrote:
> In the end I just #define'd 'BOOST_SP_USE_QUICK_ALLOCATOR' and on my
> platform that was faster than 3 out of 4 of the proprietary allocators
> used. So I'll go ahead and test this on the other platforms we need.
> If it works just as well there, I'll merge my changes into the trunk.

Also, make_shared could be used to get rid of the separate allocation
for the count. This may make it unnecessary to define
BOOST_SP_USE_QUICK_ALLOCATOR.

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


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