This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/11723] ctype<wchar_t>::do_is(mask, wchar_t) is slow
- From: "peturr02 at ru dot is" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jul 2003 09:19:25 -0000
- Subject: [Bug libstdc++/11723] ctype<wchar_t>::do_is(mask, wchar_t) is slow
- References: <20030730091541.11723.peturr02@ru.is>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11723
------- Additional Comments From peturr02 at ru dot is 2003-07-30 09:19 -------
Created an attachment (id=4521)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4521&action=view)
Test case
Here are typical results:
time ./ctypeisspeed c 10000
0.14user 0.00system 0:00.15elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (85major+11minor)pagefaults 0swaps
time ./ctypeisspeed c++ 10000
5.34user 0.00system 0:05.35elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (85major+11minor)pagefaults 0swaps
So ctype<wchar_t>::is is more than 30x slower than iswctype.