optimize mbrtowc
authorRich Felker <dalias@aerifal.cx>
Tue, 9 Apr 2013 02:49:59 +0000 (22:49 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 9 Apr 2013 02:49:59 +0000 (22:49 -0400)
this simple change, in my measurements, makes about a 7% performance
improvement. at first glance this change would seem like a
compiler-specific hack, since the modified code is not even used.
however, I suspect the reason is that I'm eliminating a second path
into the main body of the code, allowing the compiler more flexibility
to optimize the normal (hot) path into the main body. so even if it
weren't for the measurable (and quite notable) difference in
performance, I think the change makes sense.


No differences found