coreutils
[Top][All Lists]
Advanced

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

Re: performance bug of `wc -m`


From: Kaz Kylheku (Coreutils)
Subject: Re: performance bug of `wc -m`
Date: Thu, 17 May 2018 17:54:39 -0700
User-agent: Roundcube Webmail/0.9.2

On 2018-05-16 17:13, Eric Fischer wrote:
I also found wcwidth to be a bad performance bottleneck in my multibyte
branch of coreutils. To fix the problem in my branch, I added a cache of the widths returned for characters in the range from 0 to UCHAR_MAX (which perhaps should also be widened to include a few other common alphabets).
The caching code is at the bottom of

In what situation are there printable characters in the range [0, UCHAR_MAX) that
have a width > 1?

The lowest-numbered Unicode character that requires two spaces is U+1100, I think.




reply via email to

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