Performance Code Review

Developer Toolschatgpt-prompts-for-developerslanguagepaste your codefrequency

The frequency context prevents ChatGPT from micro-optimizing cold code paths. 'Only flag issues that matter at the stated scale' keeps recommendations practical.

Prompt
Analyze this {{language}} code for performance issues:

\`\`\`
{{paste your code}}
\`\`\`

Context: This code runs {{frequency}} (e.g., "on every API request", "in a batch job processing 1M records", "on page load").

Check for:
- Unnecessary allocations or copies
- N+1 query patterns
- Missing caching opportunities
- Algorithmic complexity issues (O(n^2) when O(n) is possible)
- Blocking operations that could be async

For each issue, estimate the impact (high/medium/low) and provide an optimized version. Only flag issues that matter at the stated scale — don't micro-optimize code that runs once.

Variables to customize

{{language}}{{paste your code}}{{frequency}}

Why this prompt works

The frequency context prevents ChatGPT from micro-optimizing cold code paths. 'Only flag issues that matter at the stated scale' keeps recommendations practical.

What you get when you save this prompt

Your workspace unlocks powerful tools to iterate and improve.

AI OPTIMIZE

AI Optimization

One-click improvement with structure analysis and pattern suggestions.

VERSION DIFF

Version History

Track every edit. Compare versions side-by-side with word-level diffs.

ORGANIZE
Development
Code Review
Testing
Marketing

Folders & Tags

Organize your library with nested folders, tags, and drag-and-drop.

MCP
$ npm i -g @promptingbox/mcp
Claude · Cursor · ChatGPT

Use Everywhere

Access prompts from Claude, Cursor, ChatGPT & more via MCP integration.

Your prompts, organized

Save, version, and access your best prompts across ChatGPT, Claude, Cursor, and more.