Improve method compiling