gcc/libstdc++-v3/testsuite/performance
Paolo Carlini 9a1349b920 re PR libstdc++/11723 (ctype<wchar_t>::do_is(mask, wchar_t) is slow)
2003-12-16  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/11723
	* include/bits/locale_facets.h: Add _M_bit and _M_wmask,
	used to speed up the computation of ctype::do_is.
	* config/locale/generic/ctype_members.cc
	(_M_initialize_ctype): Fill _M_bit and _M_wmask.
	(ctype::do_is): Use _M_bit and _M_wmask.
	* config/locale/gnu/ctype_members.cc: Likewise.
	* testsuite/performance/is_wchar_t.cc: New.

	* testsuite/performance/narrow_widen_wchar_t.cc: Tweak
	string literal (incorrect citation ;)

	* include/bits/locale_facets.h: Minor tweaks, const
	correctness, unsigned -> size_t.

From-SVN: r74686
2003-12-16 11:00:52 +00:00
..
allocator.cc *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
complex_norm.cc *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
cout_insert_int.cc *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
filebuf_copy.cc *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
filebuf_sputc.cc *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
fstream_seek_write.cc *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
ifstream_getline.cc *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
is_wchar_t.cc re PR libstdc++/11723 (ctype<wchar_t>::do_is(mask, wchar_t) is slow) 2003-12-16 11:00:52 +00:00
list_create_fill_sort.cc *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
map_create_fill.cc locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
narrow_widen_char.cc re PR libstdc++/11723 (ctype<wchar_t>::do_is(mask, wchar_t) is slow) 2003-12-16 11:00:52 +00:00
narrow_widen_wchar_t.cc re PR libstdc++/11723 (ctype<wchar_t>::do_is(mask, wchar_t) is slow) 2003-12-16 11:00:52 +00:00
ofstream_insert_float.cc *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
ofstream_insert_int.cc *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
string_append.cc *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
wchar_t_in.cc codecvt_members.cc (codecvt::do_in): Rewrite, using both mbsnrtowcs and mbrtowc in a loop... 2003-11-24 21:13:38 +00:00
wchar_t_length.cc codecvt_members.cc (codecvt::do_length): Rewrite, using both mbsnrtowcs and mbrtowc in a loop... 2003-11-25 21:41:28 +00:00
wchar_t_out.cc re PR libstdc++/11602 (codecvt<wchar_t, char, mbstate_t> is slow.) 2003-11-20 19:24:03 +00:00