Pergunta de entrevista da empresa John Keells IT

How would you optimize the performance of a slow-running application?