You can probably do 100,000,000 integer comparisons in a few seconds. It's a micro-optimisation that'd be much better if it were ignored The rest of the processing will take considerably more CPU time.