IMRPOVE: Really? replacing math.min/max with x<y?x:y improves performance? #15