[Bug libstdc++/11602] codecvt<wchar_t, char, mbstate_t> is slow.

cvs-commit at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Nov 20 19:24:00 GMT 2003


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-11-20 19:24 -------
Subject: Bug 11602

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	paolo@gcc.gnu.org	2003-11-20 19:24:03

Modified files:
	libstdc++-v3   : ChangeLog 
	libstdc++-v3/config/locale/gnu: codecvt_members.cc 
Added files:
	libstdc++-v3/testsuite/performance: wchar_t_out.cc 

Log message:
	2003-11-20  Paolo Carlini  <pcarlini@suse.de>
	
	PR libstdc++/11602
	* config/locale/gnu/codecvt_members.cc (codecvt::do_out):
	Rewrite, using both wcsnrtombs and wcrtomb in a loop: the
	former is very fast, but stops if encounters a NUL.
	* testsuite/performance/wchar_t_out.cc: New, from the PR.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2094&r2=1.2095
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/config/locale/gnu/codecvt_members.cc.diff?cvsroot=gcc&r1=1.6&r2=1.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/performance/wchar_t_out.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11602



More information about the Gcc-bugs mailing list