$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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