
29 May
2004
29 May
'04
6:50 a.m.
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