bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: horrible utf-8 performace in wc


From: Jan Engelhardt
Subject: Re: horrible utf-8 performace in wc
Date: Wed, 7 May 2008 13:41:28 +0200 (CEST)
User-agent: Alpine 1.10 (LNX 962 2008-03-14)

On Wednesday 2008-05-07 13:11, Pádraig Brady wrote:
>
>Now that is a _lot_ of extra time. libiconv could probably be
>made more efficient. I've never actually looked at it.
>However wc calls mbrtowc() for each multibyte character.
>It would probably be a lot more efficient to use mbstowcs()
>to convert the whole read buffer.

And perhaps use iconv_open("wchar_t", whatever-is-appropriate) instead of
mbrtowc()?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]