[PD] optimized compile