Re: -fshort-wchar option, wchar_t and Native<->Unicode conversion

Darin Fisher <[email protected]> Thu, 22 May 2003 19:28:47 -0700
Newsgroups gmane.comp.mozilla.devel.unix,gmane.comp.mozilla.internationalization,gmane.comp.mozilla.devel.xpcom
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Jungshik Shin wrote:

> Darin Fisher wrote:
>
>> Yeah, I wrote that comment about mbrtowc/wcrtomb being faster, but I 
>> don't have my testcases anymore.  I'm not sure how much faster it 
>> was... it might be good to construct some new tests to verify that 
>> statement ;-)
>>
>
>   Or, we may just take a short-cut by pinging Ulrich and Bruno? :-) 
> They  must have a good perf. estimate for what they wrote. What do you 
> think?


Yeah, it would be good to run this by them just to see what they say ;-)


>
>
> I've just taken a brief look at mbrtowc and wcrtomb implementation in 
> glibc 2.3.2 and it seems like we wouldn't gain much  because both 
> mbrtowc/wcrtomb and iconv rely on GCONV(glibc internal module for 
> codeset conversion). Well, this is just from a cursory look so that it 
> can be wrong.
>

Originally, I intended the iconv code to be run on Linux because I think 
I expected it to be faster than wcrtomb/mbrtowc, but actually I remember 
that it was slower... but, maybe by not much ;-)

Darin