Boost logo

Boost :

From: John Nagle (nagle_at_[hidden])
Date: 2004-05-29 01:50:43


Reece Dunn wrote:
>> You might even be able to do
>> some metaprogramming to determine whether the capacity of the
>> source string is less than or equal to the capacity of the
>> destination string and avoid the virtual function call overhead
>> for an entire class of copies.

   I wouldn't worry about per-call overhead for whole-string
operations. Just make sure that single-character operations,
like "operator+=" and "operator[]" are as fast as possible.

                        John Nagle
                        Animats


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