Ask where it's slow
Tell the AI "where is this slow?" and let it point at repeated loops, repeated database calls, or data it rebuilds over and over. It can guess the cause, but you still get to confirm it.
Measure before you trust the number
The AI can name the likely culprit; it can't tell you whether it's actually the bottleneck. Time the code before and after the change. Only spend effort optimizing the parts that are genuinely slow.