This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch] Batch of basic_string correctness and performance work
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Paolo Carlini <pcarlini at suse dot de>
- Cc: Gawain Bolton <gp dot bolton at computer dot org>,libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Tue, 26 Oct 2004 01:00:04 +0200
- Subject: Re: [Patch] Batch of basic_string correctness and performance work
- References: <417BE78A.2050307@suse.de> <417D5FBE.7010305@computer.org> <417D690E.3060501@suse.de>
Paolo Carlini wrote:
For instance, string_append.cc, that basically only uses basic_string,
is less than 0.5% bigger.
One last comment, to explain this 0.5%: before my patch *nothing* of
those append was
inlined: nothing of append(const _CharT*, size_type) because it just
called the heavy _M_mutate,
and nothing of append(const basic_string&) because was defined out of
line. Therefore that 0.5%
easily accounts for the conditional and a bunch of assignments that now
constitute "the bulk" of
those functions (+ reserve, still out of line).
Paolo.