add optimize compiler option and inline annotation