Comment

Comment by hacking_again

More or less, assuming you can predict it. But there's a penalty for misprediction. So it boils down to whether using % frequently (either as a native instruction or as a sequence of instructions) is more or less expensive than predicting a branch frequently, given a certain misprediction rate.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton