[fpc-pascal] for loop vs while loop
mneubauer at alice-dsl.net
Wed Feb 1 21:17:27 CET 2017
Just a note - I learned that for very short "for" loops it may be even a bit
faster to count downwards (to zero) rather than upwards if possible, because
the comparison to zero is very effiicient. Not sure though whether that
still makes a difference on modern processors.
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/for-loop-vs-while-loop-tp5727537p5727548.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal