ÃLoop exit condition optimization