[Gllug] Bug in grep? Surely not ...

Richard Jones rich at annexia.org
Tue Sep 20 15:49:22 UTC 2005


On Tue, Sep 20, 2005 at 04:13:13PM +0100, Russell Howe wrote:
> UTF8 locale? Recently GNU grep has had major improvements in speed on
> UTF8 locales, but it's still quite slow...

By Jove, he's got it.

Yes, if I set the locale to C then it runs nearly instantaneously.  By
default however I have LANG and LANGUAGE set to en_GB.UTF-8 and it
runs at a crawl.

> If your input is stored in a file, I'd tell grep to look at the file
> rather than feed it in on stdin. Then it at least has the ability to do
> things like mmap() and seeking if it so desires.

This didn't make any difference.

Rich.

-- 
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list