implement mbtowc directly, not as a wrapper for mbrtowc
authorRich Felker <dalias@aerifal.cx>
Tue, 9 Apr 2013 03:01:32 +0000 (23:01 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 9 Apr 2013 03:01:32 +0000 (23:01 -0400)
the interface contract for mbtowc admits a much faster implementation
than mbrtowc can achieve; wrapping mbrtowc with an extra call frame
only made the situation worse.

since the regex implementation uses mbtowc already, this change should
improve regex performance too. it may be possible to improve
performance in other places internally by switching from mbrtowc to
mbtowc.


No differences found