Boost logo

Boost :

Subject: Re: [boost] [utility] new auto_buffer class --- RFC
From: Matt Calabrese (rivorus_at_[hidden])
Date: 2009-03-02 17:56:52


On Mon, Mar 2, 2009 at 4:32 PM, Thorsten Ottosen <
thorsten.ottosen_at_[hidden]> wrote:

> Christopher Jefferson skrev:
>>
>> You could make exactly the same argument about pushing back into a vector,
>> why not have a push_back_unchecked that doesn't check if reallocation must
>> occur. I did once experiment with this and got no measurable speed
>> improvement.
>>
>
> So did I in a real-time ray-tracing application. The difference was a
> deal-breaker.

I definitely see this tool as being all about low-level optimization, which
is one of the few things we can say almost for certain concerning its domain
of usage, so it might as well directly offer as much functionality in that
regard as possible.

-- 
-Matt Calabrese

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