bug#22357: grep -f not only huge memory usage, but also huge time cost

2016-03-10 Thread JQK
. $ grep -v -f file1 file2 (FYI, on AIX it could only be less than 1 second) Maybe there is also a room for optimization not only on the memory usage but also on the time cost. -- Junkui Quan (JQK) www.redhat.com signature.asc Description: OpenPGP digital signature

bug#22357: grep -f not only huge memory usage, but also huge time cost

2016-03-10 Thread JQK
On 03/11/2016 01:26 AM, Jim Meyering wrote: > On Thu, Mar 10, 2016 at 3:00 AM, JQK wrote: >> If in the following situation, >> >> === >> file1 has numbers from 1 to 20, 20 lines >> file2 has several lines(about 200 ~300lines) of random nu

bug#22357: grep -f not only huge memory usage, but also huge time cost

2016-03-13 Thread JQK
On 03/12/2016 04:17 AM, Jim Meyering wrote: > [resending to keep the list on Cc] > On Thu, Mar 10, 2016 at 10:05 PM, JQK wrote: >> On 03/11/2016 01:26 AM, Jim Meyering wrote: >>> On Thu, Mar 10, 2016 at 3:00 AM, JQK wrote: >>>> If in the following situation, >