[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep is horriby slow in UTF-8 locales
dsegan@xxxxxxx (Danilo Šegan) writes:
> $ LC_ALL=en_GB.UTF-8 time grep2.5 XYZ test.txt
> Command exited with non-zero status 1
> 0.05user 0.07system 0:00.12elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
> 0inputs+0outputs (140major+45minor)pagefaults 0swaps
Whoops, this above is total crap. I didn't have en_GB.UTF-8 locale
installed at all, so when I created it using:
# localedef -f UTF-8 -i en_GB en_GB.UTF-8
I got the following results, which matches your experiences:
$ LC_ALL=en_GB.UTF-8 time grep2.5 XYZ test.txt
Command exited with non-zero status 1
2.85user 0.13system 0:03.18elapsed 93%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (161major+55minor)pagefaults 0swaps
Yet, grep 2.4 doesn't inhibit these problems at all (guess I won't be
fast at upgrading :).
Cheers,
Danilo
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/