bug#21696: [PATCH 1/2] grep: improvement of performance of grep -Fw

2015-10-17 Thread Norihiro Tanaka
On Sat, 17 Oct 2015 08:11:21 -0700 Jim Meyering wrote: > I would like to make a prerelease snapshot late today or tomorrow, so > if you know of any quick/trivial improvements or anything > bug-fix-related, please let me know soon. Thanks for making pre-release. I don't also have any quick and/

bug#21696: [PATCH 1/2] grep: improvement of performance of grep -Fw

2015-10-17 Thread Paul Eggert
Jim Meyering wrote: I would prefer to release the fixed grep-2.22 ASAP, and integrate those additional changes afterwards. Thanks for doing the release. I don't have any quick or trivial patches in my pipeline (which also includes a fix for the "binary output matches" problem, and reviewing Z

bug#21696: [PATCH 1/2] grep: improvement of performance of grep -Fw

2015-10-17 Thread Jim Meyering
On Sat, Oct 17, 2015 at 12:44 AM, Norihiro Tanaka wrote: > On Fri, 16 Oct 2015 22:48:07 -0700 > Paul Eggert wrote: > >> Thanks for those performance improvements. I installed them, with some minor >> changes to commentary. I also installed a couple of minor tweaks to the >> code, to use memrchr

bug#21696: [PATCH 1/2] grep: improvement of performance of grep -Fw

2015-10-17 Thread Norihiro Tanaka
On Fri, 16 Oct 2015 22:48:07 -0700 Paul Eggert wrote: > Thanks for those performance improvements. I installed them, with some minor > changes to commentary. I also installed a couple of minor tweaks to the code, > to use memrchr and to simplify the multibyte test. Attached are the revised > s

bug#21696: [PATCH 1/2] grep: improvement of performance of grep -Fw

2015-10-16 Thread Paul Eggert
Thanks for those performance improvements. I installed them, with some minor changes to commentary. I also installed a couple of minor tweaks to the code, to use memrchr and to simplify the multibyte test. Attached are the revised set of patches. From a341e981fec14f3a76e88bca3e40fdbc98539cf8 Mon

bug#21696: [PATCH 1/2] grep: improvement of performance of grep -Fw

2015-10-16 Thread Norihiro Tanaka
I found that grep -Fw is extremely slow in spite of whether in multibyte locales or not. $ yes 'abcdefg hijklmn opqrstu vwxyz' | head -10 >k $ time -p env LC_ALL=C grep -Fw vwxy k real 14.03 user 12.51 sys 0.74 $ time -p env LC_ALL=ja_JP.eucJP grep -Fw vwxy k real 14.29 user 12.67 sys 0.50 $