←back to thread

170 points judicious | 1 comments | | HN request time: 0s | source
Show context
rao-v ◴[] No.45406877[source]
I’m amused to see a for loop in a function that is purportedly branchless

(not a critique)

replies(1): >>45409050 #
1. bluGill ◴[] No.45409050[source]
Loops are very predictable in general so the branch isn't a problem. Of course this assumes your branch codition is standard - you can do weird things in the end condition that would food the cpu.