📝 Prompt

Performance Optimization

Analyze and optimize this code for maximum performance:

Coding 💾 0 saves by PromptChief
Analyze and optimize this code for maximum performance: ``` [[SELECTED_TEXT]] ``` Investigate: 1. **Algorithmic complexity** – are there more efficient algorithms? 2. **Database access** – N+1 problems, missing indexes, unnecessary queries 3. **Memory usage** – unnecessary copies, memory leaks 4. **Caching opportunities** – what can be cached? 5. **Parallelization** – what can run async/parallel? Show optimized code + expected performance improvement.
Share 𝕏 in LinkedIn WhatsApp Reddit

Use this prompt in one click

Save it, fill in the [[variables]], and inject it straight into ChatGPT, Claude or Gemini with the free PromptChief extension.

Open in Prompt Hub →

← Browse all prompts