Optimize the comparison of two integers a bit.