[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #14472] grep is slow in multibyte locales
From: |
Adam Rosenstein |
Subject: |
[bug #14472] grep is slow in multibyte locales |
Date: |
Fri, 01 Feb 2008 19:07:10 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.9) Gecko/20071101 SUSE/2.0.0.9-2.1 Firefox/2.0.0.9 |
Follow-up Comment #4, bug #14472 (project grep):
I can confirm that on versions 2.5.2 (shipped with openSuSE 10.3) and 2.5.3:
LC_ALL=en_US.utf-8 is four orders of magnitude slower than LC_ALL=C when
grepping pure ASCII input with a frequently matched simple [no kleene star]
pattern. This effectively hobbles all kinds of scripts...
# wc -l /var/log/messages
90833 /var/log/messages
# LC_ALL=C time grep proxy /var/log/messages > /dev/null
0.03user 0.00system 0:00.04elapsed 107%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+185minor)pagefaults 0swaps
# LC_ALL=en_US.utf-8 time grep proxy /var/log/messages > /dev/null
84.94user 0.05system 1:29.63elapsed 94%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+239minor)pagefaults 0swaps
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?14472>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #14472] grep is slow in multibyte locales,
Adam Rosenstein <=