3 ms·
A for loop also is an implicit branch, by the way. At least it will be compiled to something with a conditional jump. So being unsure about how many times you
by Asdfbla 9y ago
A for loop also is an implicit branch, by the way. At least it will be compiled to something with a conditional jump.
So being unsure about how many times you want to do a thing is a no-go too.
- pertymcpert 9y agoNot if it's a known constant trip count, then you can fully unroll it. No more branches! If the trip count isn't known at compile time? You should find out.