logoalt Hacker News

samatman • yesterday at 6:59 PM • 1 reply • view on HN

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?


Replies

svachalek • yesterday at 11:54 PM

Yes that should be approximately 4x faster...