Pregunta de entrevista de Tranglo

How do you optimise the code when its performance is slow?