bug#43527: [PATCH] grep: avoid unneeded compilation of regex

2020-09-20 Thread Norihiro Tanaka
Hi, Performace for as following case is fixed in bug#43040. $ yes 0 | head -10 | sed '$s/././' >pat $ grep -vf pat /dev/null However, still slow and a lot of memory wasted for the following cases. $ grep -vf /usr/share/dict/linux.words /usr/share/dict/linux.words This bug is introduc

bug#43527: [PATCH] grep: avoid unneeded compilation of regex

2020-09-20 Thread Jim Meyering
On Sun, Sep 20, 2020 at 12:17 AM Norihiro Tanaka wrote: > Hi, > Performace for as following case is fixed in bug#43040. > > $ yes 0 | head -10 | sed '$s/././' >pat > $ grep -vf pat /dev/null > > However, still slow and a lot of memory wasted for the following cases. > > $ grep -vf /usr/s