[Bug libstdc++/15002] [3.4 only] Linewise stream input is unusably slow (std::string slow)
cvs-commit at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun May 2 16:10:00 GMT 2004
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-05-02 16:10 -------
Subject: Bug 15002
CVSROOT: /cvs/gcc
Module name: gcc
Branch: hammer-3_3-branch
Changes by: paolo@gcc.gnu.org 2004-05-02 16:10:34
Modified files:
libstdc++-v3 : ChangeLog.hammer
libstdc++-v3/include/bits: istream.tcc
Log message:
2004-05-02 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/15002 (continued)
* include/bits/istream.tcc (getline(basic_istream<>&,
basic_string<>&, _CharT)): Use a temporary buffer, thus
avoiding reallocation for common case.
* include/bits/istream.tcc (getline(basic_istream<>&,
basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
of sbumpc(), consistently with the other functions, thus also
dealing correctly with the case of exceeded string::max_size().
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.hammer.diff?cvsroot=gcc&only_with_tag=hammer-3_3-branch&r1=1.1.2.12&r2=1.1.2.13
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/istream.tcc.diff?cvsroot=gcc&only_with_tag=hammer-3_3-branch&r1=1.36.2.7&r2=1.36.2.8
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15002
More information about the Gcc-bugs
mailing list