[PD] How to make a large patch performant