5 ms·
Because that's a branch that's "always" taken, except for once - which, speed-wise, is very close to always taken, i.e. not a branch. The author counts the bran
by einpoklum 3y ago
Because that's a branch that's "always" taken, except for once - which, speed-wise, is very close to always taken, i.e. not a branch. The author counts the branching inside the loop, which is often taken and often not taken.
- postalrat 3y agoIt's not impossible to remove that branch. Until you do that then this is a reduced branch implementation.