[RFC] A mild "hack" for the string half of 15002
Paolo Carlini
pcarlini@suse.de
Fri Apr 23 13:58:00 GMT 2004
Hi,
as explained so interestingly by Matt, for getline(istream, string) we
can't do incredibly cute things in the general case...
Therefore, for now, for 3.4.x definitely and usable in the general case,
I'm considering the below, which gives (600000 lines, 200 char long):
current
-------
3.190u 0.080s 0:03.28 99.6% 0+0k 0+0io 203pf+0w
vs
patched
-------
1.090u 0.100s 0:01.19 100.0% 0+0k 0+0io 204pf+0w
What do you think? Does it seem something we can live with, everything
considered? FWIW, we are already using a similar trick in basic_string
for the constructor from input_iterators.
(Regtested x86-linux)
Paolo.
//////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_15002_c2
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040423/5d1a7003/attachment.ksh>
More information about the Libstdc++
mailing list