improve partial efficiency, add -O3