Code optimization. Reduce some redundant operations. (2014/3/8)