Hacker News new | past | comments | ask | show | jobs | submit login

BSD grep decides on a pattern by pattern basis which match engine to use. -F is unlikely to affect performance.



Oh dear, you appear to be correct. Adding additional queries to `queries` (while being careful not to increase total match count by much) appears to increase search time linearly. From that, it looks like BSD grep is just running an additional pass over each line for each query.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: