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

2016-12-15 Thread L.A. Walsh
Norihiro Tanaka wrote: dfa matcher is not always slower than kws matcher. - $ env LC_ALL=C grep -F -w 0 k - $ env LC_ALL=C grep -F -w -f /usr/share/dict/words /dev/null First is faster after the changes, and second is slower after the changes. It's a trade-off. Can you have any idea to select

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

2016-12-15 Thread Paul Jackson
An interesting discussion ... thanks :). I tried "grep -f" on a couple of large text files I had. I have a file of "words", one word per line, all lower case ascii, that I had accumulated from various spell checkers and such. This "words" file has 395,696 unique (more or less) English words in it