[v3] Avoid istreambuf_iterator::operator*() calls

Paolo Carlini pcarlini@suse.de
Thu Oct 28 12:43:00 GMT 2004


Hi,

the below, trivial, change, repairs a few places where we called
unnecessarily the relatively heavy and costly operator*().

Added to the recent improvements to basic_string, on x86 we are
now roughly 10% faster in parsing floats and monetary quantities
(slightly better on x86_64 and in the statically linked case).

Regtested x86-linux, committing to mainline.

Paolo.

/////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_locale
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20041028/2761d18b/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_locale
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20041028/2761d18b/attachment-0001.ksh>


More information about the Libstdc++ mailing list