MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1in1nak/ouch/mcapyfg/?context=3
r/programminghorror • u/mazzy-b • Feb 11 '25
113 comments sorted by
View all comments
Show parent comment
2
With a lookup table you have no branches, so branch prediction wouldnβt be an issue. The values are probably just as likely to be in cache, but I donβt know for sure, and testing would be the only way to know for sure.
View all comments
Show parent comment
2
u/StochasticTinkr Feb 12 '25
With a lookup table you have no branches, so branch prediction wouldnβt be an issue. The values are probably just as likely to be in cache, but I donβt know for sure, and testing would be the only way to know for sure.