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

I know this is focusing on the wrong thing but, here we go

Wouldn't it be nicer to compare the string four bytes at a time for all but the tail?

And then compare the tail by comparing the last four bytes, and ignoring the "extra work" because there's no condition that way?

 help



Yes that should be approximately 4x faster...



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

Search: