[Top][All Lists]

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

[bug #14472] grep is slow in multibyte locales

From: Tony Abou-Assaleh
Subject: [bug #14472] grep is slow in multibyte locales
Date: Wed, 10 Oct 2007 22:47:35 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv: Gecko/20070914 Firefox/

Update of bug #14472 (project grep):

                  Status:                    None => Confirmed              


Follow-up Comment #3:

$ apt-cache search '.*' >> f2

... repeat above about 50 times.

$ wc -l f2
  239700 f2
$ LC_ALL=C time grep 'pack.*ge' f2 > /dev/null 
        0.03 real         0.02 user         0.00 sys
$ LC_ALL=en_US.utf-8 time grep 'pack.*ge' f2 > /dev/null 
        9.85 real         9.50 user         0.34 sys

Grep is taking way too long in utf-8, even though the file contains plain
ascii text.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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