buggrep - Bugs: bug #21001, Grep is TOO slow in some locales.

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #21001: Grep is TOO slow in some locales.

Submitted by:  None
Submitted on:  Fri 07 Sep 2007 11:07:47 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Duplicate
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu 11 Oct 2007 01:39:29 AM UTC, comment #1:

This bug is a duplicate of bug #14472. Please post all future comments at #14472.

Tony Abou-Assaleh <taa>
Project Administrator
Fri 07 Sep 2007 11:07:47 PM UTC, original submission:

Hi, this was already submitted as bug #14472, but i would like to
stress the severity of the problem. It takes 6s for grep to go through a 550K text file in my machine when locale is set to en_US.UTF-8. When the locale is set to C, the time is 0.007s.
Details below.

Thanks,
Apuã

apua@blimunda:~$ uname -a
Linux blimunda 2.6.22 #1 PREEMPT Sun Sep 2 12:24:33 BRT 2007 i686 GNU/Linux
apua@blimunda:~$ grep --version
GNU grep 2.5.3

Copyright (C) 1988, 1992-2002, 2004, 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

apua@blimunda:~$ ls -la file.txt
-rw-r--r-- 1 apua apua 577571 2007-09-07 19:29 file.txt

apua@blimunda:~$ time LC_ALL=C grep 'sci' file.txt > /dev/null

real 0m0.007s
user 0m0.005s
sys 0m0.002s

apua@blimunda:~$ time LC_ALL=en_US.UTF-8 grep 'sci' file.txt > /dev/null

real 0m6.101s
user 0m5.147s
sys 0m0.065s

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by taa (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 11 Oct 2007 01:39:29 AM UTCtaaStatusNone=>Duplicate
      Open/ClosedOpen=>Closed
      Discussion LockUnlocked=>Locked

    Back to the top


    Powered by Savane 3.1-cleanup1