Hi Markus, Markus Kuhn <[EMAIL PROTECTED]> writes: > Rob Park wrote on 2003-11-08 00:49 UTC: >> grep is slower on my system, but it doesn't appear to be as bad as on >> your system. > > Your results show that grep in UTF-8 mode is equally 100x slower than in > single-byte mode, just like on my system (300 MHz P3). You just have > used a faster CPU.
I tried this with grep 2.5 (the latest available from ftp.gnu.org/gnu/grep/, because of the crack) and it still shows decent results on my home Slackware GNU/Linux 8.0 (GNU libc 2.2.3 I think): $ LC_ALL=POSIX time grep2.5 XYZ test.txt Command exited with non-zero status 1 0.03user 0.06system 0:00.14elapsed 63%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (130major+22minor)pagefaults 0swaps $ 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 I'm using Celeron 700MHz. I cannot build grep from CVS right now, but I still suspect this is not a grep problem. Cheers, Danilo -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/