3 ms·
C is also unpredictable: see the article from a couple days ago entitled "Why does my function run faster when the input array is sorted?" (The answer was: bra
by jrockway 14y ago
C is also unpredictable: see the article from a couple days ago entitled "Why does my function run faster when the input array is sorted?"
(The answer was: branch prediction.)
- to3m 14y agoI'm not sure that counts in the same way. You would have the branch prediction issue even if you program in assembly language and have precise control over the instructions the computer executes.