|
Boost : |
Subject: Re: [boost] [Any] Reference counting
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2009-04-08 02:15:06
Michael Howell skrev:
> On Sunday 05 April 2009 18:06:46 I wrote:
>> Thorsten Ottosen <thorsten.ottosen_at_[hidden]> wrote:
>>> If you want to improve the performance of any, the thing to do is to add
>>> a small buffer optimization such that all buildin types (or equally
>>> small UDT) are created on the stack.
>> I'll look into that.
> I've managed to make a patch to do it.
well, you're using shared_ptr now, so you don't avoid heap allocations,
do you?´(and there must be an overhead with using shared_ptr do to the
reference counts)
Also, can those reinterpret_cast not be replace with static_cast?
-Thorsten
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk