logoalt Hacker News

jstimpfleyesterday at 8:43 AM1 replyview on HN

I'm saying that string search algorithms are _not_ a legitimate use case for unaligned loads.


Replies

simonaskyesterday at 4:44 PM

You didn’t really say that, but feel free to share any reasons you might have to think so.

I don’t see any reason why it wouldn’t be perfectly fine on recent hardware, where unaligned loads are just as fast, and the cache pressure is identical for a linear search algorithm.

show 1 reply