Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
watermelon0
on May 25, 2023
|
parent
|
context
|
favorite
| on:
Cases where full scans are better than indexes
Unrelated note intrigued me, so I went looking in the source code; detection is here:
https://git.savannah.gnu.org/cgit/grep.git/tree/src/grep.c#n...
Interesting that they would optimize for this use case.
remram
on May 25, 2023
[–]
Especially since grep -q exists. It would never come to my mind to direct grep's output to /dev/null, I wonder how this optimization came to be?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Interesting that they would optimize for this use case.