Improve size comparison code.