Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Grep doesn't read every byte.


I used the word "read" and not the word "compare" for a reason.

You are missing the big picture here of linear search versus indexed search. Optimizations in grep don't magically make it better than O(n).




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

Search: