GNU bug report logs - #20526
BUG: text file is detected as binary

Previous Next

Package: grep;

Reported by: Sebastian Poehn <sebastian.poehn <at> gmail.com>

Date: Thu, 7 May 2015 15:41:03 UTC

Severity: normal

Merged with 19230, 19985, 21558

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #104 received at 20526 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jim Meyering <jim <at> meyering.net>, 20526 <at> debbugs.gnu.org,
 sebastian.poehn <at> gmail.com
Cc: Johannes Meixner <jsmeix <at> suse.de>, Kamil Dudka <kdudka <at> redhat.com>,
 Benno Schulenberg <bensberg <at> justemail.net>
Subject: Re: bug#20526: grep BUG: text file is detected as binary
Date: Wed, 6 Jan 2016 00:32:17 -0800
[Message part 1 (text/plain, inline)]
Paul Eggert wrote:

> grep -rP 'fed.*cba' .
>
> On my machine the above command is 125x slower with the new grep than the old
> one, which suggests some tuning is in order before releasing. (It's bogged down
> inside libpcre somewhere.)

I installed the attached patch, which fixed this performance bug for me.
[0001-grep-restore-P-PCRE_NO_UTF8_CHECK-optimization.patch (text/x-diff, attachment)]

This bug report was last modified 9 years and 138 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.