I wonder if there is a difference in performance between
checking if a value is greater / smaller than another
for(int x = 0; x <
The performance in theory is the same. When you do a less than or not equal to operation, in the processor level you actually perform a subtract operation and check if the negative flag or zero flag is enabled in the result. In theory the performance will be the same. Since the difference is only checking the flag set.