This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/11723] ctype<wchar_t>::do_is(mask, wchar_t) is slow


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]