logoalt Hacker News

stingraycharleslast Tuesday at 1:17 PM1 replyview on HN

It can, because of how CPUs work with registers and hot code paths and all that.

First normalizing everything and then comparing normalized versions isn’t as fast.

And it also enables “stopping early” when a match has been found / not found, you may not actually have to convert everything.


Replies

mgaunardlast Tuesday at 2:18 PM

Running more code per unit of data does not make the code hotter or reduce the register pressure, quite the opposite...

show 1 reply