coreutils
[Top][All Lists]
Advanced

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

Re: performance bug of `wc -m`


From: Eric Fischer
Subject: Re: performance bug of `wc -m`
Date: Wed, 16 May 2018 17:31:16 -0700

I should also add that the core reason that wc is slow and Python is fast
is not that UTF-8 decoding in wc is slow, it is that the Python code is
just counting characters, while wc is also maintaining a line width
for --max-line-length. It doesn't really need to do this, and probably
shouldn't do this, unless --max-line-length is specified.

Eric


reply via email to

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