bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21763: bug#22239: bug#22357: grep -f not only huge memory usage, but


From: Paul Eggert
Subject: bug#21763: bug#22239: bug#22357: grep -f not only huge memory usage, but also huge time cost
Date: Mon, 26 Dec 2016 12:07:49 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Norihiro Tanaka wrote:
Hmm, how about the following test cases, although it is extreame?

I don't think we need to worry about performance for the case when -w is given, and a pattern matches data that contains non-word characters. In practice, such cases are rare. I expect that most users would be surprised that -w can match non-word characters, and that users wouldn't object to -w rejecting such matches (if this wouldn't hurt performance significantly).

While looking into this I did find a very small performance tweak for the test case, and installed the attached.

Attachment: 0001-grep-minor-performance-tweak-for-pure-functions.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]