Subject: Re: [boost] shared_ptr/shared_count and the cost of use counter allocation
From: Michael Marcin (mike.marcin_at_[hidden])
Date: 2008-09-10 12:26:38
Hendrik Schober wrote:
> Hendrik Schober wrote:
> Thanks everybody for their answers. I hadn't seen the possibility to
> pass custom allocators.
> 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.
IIRC the pool of sp counted objects used won't be cleaned up until the
OS reclaims the memory at program termination. If you run any sort of
leak detector this can be annoying.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk