So, I'm working with an Arduino.
I want to edit some of the core functions and i need to know - what is faster, a "for" or a "while" loop?
Code:while(1) { do; };Which one of these will "do" faster? And maybe there is a faster way of looping things?Code:for(;;) { do; }



LinkBack URL
About LinkBacks




would be faster. My rational is that the "while(1) loop would need to be checked each time through for "1" each iteration through. Beyond that I doubt there would be any speed gain.