Diligent Interview Question

How to Reduce the performance of Large running API