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

For the specific case of substring/byte searching, another useful trick here is to do an unaligned load that lines up with the end of the haystack. Some portion of that load will have already been searched, but you already know nothing is in it.


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

Search: