4 ms·
Gnu grep is or was very slow with the UTF-8 locale. Not sure about other commands, perhaps anything that processes text, awk and sed maybe?
by foobarbazqux 13y ago
Gnu grep is or was very slow with the UTF-8 locale. Not sure about other commands, perhaps anything that processes text, awk and sed maybe?
- dsberkholz 13y agoThat was mostly fixed. http://savannah.gnu.org/bugs/?14472 http://savannah.gnu.org/bugs/?14472
- thrownaway2424 13y agoIt's no longer quadratic in so many cases, but it's still true that UTF-8 string operations require, in the best case, several CPU cycles per character consumed, even when the input is an ASCII subset. LC_ALL=C pretty much guarantees one or fewer CPU cycles per input character. Basics like strlen and strchr and strstr are significantly faster in "C" locale.