[Bug libstdc++/11722] Unbuffered filebuf::sgetn is slow
cvs-commit at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Sep 13 22:21:00 GMT 2004
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-09-13 22:21 -------
Subject: Bug 11722
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: paolo@gcc.gnu.org 2004-09-13 22:21:34
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/include/std: std_fstream.h
libstdc++-v3/include/bits: fstream.tcc
Added files:
libstdc++-v3/testsuite/performance/27_io: filebuf_sgetn_unbuf.cc
Log message:
2004-09-13 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/11722
* include/std/std_fstream.h (xsgetn): Declare only.
* include/bits/fstream.tcc (xsgetn): Define, optimize for the
always_noconv() case: when __n > __buflen, copy the available
buffer and issue a direct read.
* testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
* include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
conditional.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2657&r2=1.2658
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/std/std_fstream.h.diff?cvsroot=gcc&r1=1.62&r2=1.63
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/fstream.tcc.diff?cvsroot=gcc&r1=1.122&r2=1.123
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/performance/27_io/filebuf_sgetn_unbuf.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11722
More information about the Gcc-bugs
mailing list