optimize compilation performance.