This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: 1.7] BUG - GREP slows to a crawl with large number of matches on a single file
- From: "Cooper, Karl (US SSA)" <karl dot cooper at baesystems dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Fri, 6 Nov 2009 09:12:54 -0500
- Subject: RE: 1.7] BUG - GREP slows to a crawl with large number of matches on a single file
Corinna Vinschen wrote:
> Or try LANG=C.ASCII since LANG=C will still return UTF-8 as charset
> when calling nl_langinfo(CHARSET).
Yes, this solves it:
$ time LC_ALL=C.ASCII grep dog testfile | wc
100000 900000 4500000
real 0m0.359s
user 0m0.279s
sys 0m0.232s
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple