bug-grep
[Top][All Lists]
Advanced

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

[bug #14472] grep is slow in multibyte locales


From: Arkadiusz Miskiewicz
Subject: [bug #14472] grep is slow in multibyte locales
Date: Thu, 26 Jun 2008 22:33:11 +0000
User-agent: Opera/9.51 (X11; Linux i686; U; en)

Follow-up Comment #14, bug #14472 (project grep):

Same here. Extremally slow.

grep-2.5.3-2.x86_64

$ export LANG=C
$ time grep FREE LOG-POLISH > x
grep --colour=auto FREE LOG-POLISH > x  0.02s user 0.00s system 26% cpu 0.089
total
$ time grep FREE LOG-POLISH > x
grep --colour=auto FREE LOG-POLISH > x  0.02s user 0.00s system 43% cpu 0.061
total
$ time grep FREE LOG-POLISH > x
grep --colour=auto FREE LOG-POLISH > x  0.02s user 0.01s system 45% cpu 0.066
total
$ time grep FREE LOG-POLISH > x
grep --colour=auto FREE LOG-POLISH > x  0.02s user 0.00s system 41% cpu 0.064
total

Now the turtle mode.

$ export LANG=pl_PL.UTF-8
$ time grep FREE LOG-POLISH > x
grep --colour=auto FREE LOG-POLISH > x  56,99s user 0,00s system 99% cpu
57,002 total
$ time grep FREE LOG-POLISH > x
grep --colour=auto FREE LOG-POLISH > x  57,81s user 0,02s system 99% cpu
57,843 total
$ time grep FREE LOG-POLISH > x
grep --colour=auto FREE LOG-POLISH > x  57,48s user 0,01s system 99% cpu
57,499 total


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?14472>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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