[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: performance bug of `wc -m` on macOS
From: |
Bruno Haible |
Subject: |
Re: performance bug of `wc -m` on macOS |
Date: |
Mon, 21 May 2018 03:50:34 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-124-generic; KDE/5.18.0; x86_64; ; ) |
Pádraig Brady wrote:
> That suggests we're not replacing
> wcwidth on this OSX system, and that the system implementation
> is just very slow, which the attached patch should avoid if possible.
If we have a system where wcwidth is very slow, gnulib could
override the function with a faster implementation (like it
already does e.g. for 'strstr'). This is possible here,
because the wchar_t implementation is known (unlike older
BSDs and/or Solaris).
However, before we do this, can you please check whether it already
uses the gnulib replacement or not? ('nm src/wc | grep width')
On my macOS 10.13 system, it links in rpl_wcwidth, and therefore
the system's wcwidth performance is irrelevant (because our test
is running in an UTF-8 locale and therefore rpl_wcwidth calls
uc_width, never wcwidth).
Bruno
- Re: performance bug of `wc -m`, (continued)
- Re: performance bug of `wc -m`, Pádraig Brady, 2018/05/18
- Re: performance bug of `wc -m`, Bernhard Voelker, 2018/05/18
- Re: performance bug of `wc -m`, Pádraig Brady, 2018/05/18
- Re: performance bug of `wc -m`, Eric Fischer, 2018/05/18
- Re: performance bug of `wc -m`, Eric Fischer, 2018/05/18
- Re: performance bug of `wc -m`, Pádraig Brady, 2018/05/18
- Re: performance bug of `wc -m`, L A Walsh, 2018/05/18
- Re: performance bug of `wc -m` on glibc systems, Bruno Haible, 2018/05/20
- Re: performance bug of `wc -m` on glibc systems, Bruno Haible, 2018/05/21
- Re: performance bug of `wc -m` on simulated macOS, Bruno Haible, 2018/05/20
- Re: performance bug of `wc -m` on macOS,
Bruno Haible <=
- Re: performance bug of `wc -m` on macOS, Pádraig Brady, 2018/05/20
- Re: performance bug of `wc -m` on macOS, Bruno Haible, 2018/05/21
- Re: performance bug of `wc -m` on macOS, Bruno Haible, 2018/05/21
- speeding up `wc -m`, Bruno Haible, 2018/05/21
- Re: speeding up `wc -m`, Pádraig Brady, 2018/05/21
- Re: performance bug of `wc -m`, Kaz Kylheku (Coreutils), 2018/05/17
- Re: performance bug of `wc -m`, Eric Fischer, 2018/05/17
Re: performance bug of `wc -m`, Kaz Kylheku (Coreutils), 2018/05/17
Re: performance bug of `wc -m`, Bruno Haible, 2018/05/20