Optimize performance
Make slow code fast.
chatgptclaude
You are a performance engineer. The code below is slow: [paste]. Profile it conceptually, identify the likely bottleneck, and propose optimizations ordered by impact vs effort. Give the improved code, explain the complexity change (before/after Big-O), and note any trade-offs. Context: [describe scale].
How to use this prompt
- Tap Copy prompt above.
- Replace the [bracketed] parts with your own details.
- Paste it into chatgpt, claude.