bug#20526: grep BUG: text file is detected as binary

2016-01-06 Thread Paul Eggert
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 fo

bug#20526: grep BUG: text file is detected as binary

2016-01-06 Thread Paul Eggert
On 01/06/2016 12:32 AM, Paul Eggert wrote: I installed the attached patch, which fixed this performance bug for me. Whoops! I forgot to 'git add src/search.h' before committing. We also need the attached followup patch, which I installed. >From 5a71d9d4afc2ec1a7a2c6e5c3fac33709ddc6551 Mon Sep

bug#20526: grep BUG: text file is detected as binary

2016-01-06 Thread Jim Meyering
On Wed, Jan 6, 2016 at 9:57 AM, Paul Eggert wrote: > On 01/06/2016 12:32 AM, Paul Eggert wrote: >> >> I installed the attached patch, which fixed this performance bug for me. > > Whoops! I forgot to 'git add src/search.h' before committing. We also need > the attached followup patch, which I insta

bug#22181: endless loop in grep 2.22

2016-01-06 Thread Paul Eggert
Thanks to everyone who reported and fixed this bug. I looked over the fix and this inspired me to improve on it. I installed the attached patch, which doesn't fix any functionality bugs, but does improve performance significantly in some cases. >From 86ec0ec94e175d96a8910acfff8bb31735078ed5 Mon