My code is slow. Help me find the bottleneck — top-down, not vibes.
WHAT IT DOES: {description}
WHAT 'SLOW' MEANS: {observed_latency_or_throughput}
TARGET: {desired_latency_or_throughput}
WHAT I'VE PROFILED OR LOGGED: {data_if_any}
CODE:
```
{paste}
```
DO:
1. List the 5 most likely bottleneck classes for THIS code (algorithmic, I/O-bound, N+1, lock contention, allocation, serialization, etc.) — ranked by probability.
2. For #1: propose the FASTEST way to confirm (timer, profiler flag, query log).
3. If confirmed, the fix — with code. If not, the next experiment.
4. The order-of-magnitude improvement I should expect from the top fix.
5. Two SMALLER wins I can ship along the way.
Do not propose a rewrite unless the data demands it.0 copies·0 saves·4 views
115 words·744 chars
Parameters
Text generation parameters
FAQ
A coding & development text prompt designed for Claude Opus. 115 words long, free to copy and use.
This prompt is written for Claude Opus. It's a text/chat prompt — paste it into Claude Opus (or compatible LLMs like Claude or GPT-4) to get the expected output.
1. Click the Copy button on this page to copy the full prompt. 2. Open Claude Opus. 3. Paste the prompt into a new conversation. 4. Replace any {placeholders} with your specifics, then send. Most prompts produce the right output on the first try; complex ones may need 1-2 iterations.
Yes — every prompt on mycopyprompt is free forever. No paywall, no signup wall for browsing or copying. You can use it for personal or commercial work, just don't redistribute the entire mycopyprompt library.
Absolutely — most prompts are templates. Look for {placeholders} (curly braces) and swap them with your own values. You can also reword sections, add constraints, or chain it with other prompts.
Similar prompts
Matched against every prompt in the catalog by title.