✦ Promptden

Performance Hunt Plan

Find the real bottleneck instead of optimizing blind.

prompt.txt
Act as a performance engineer. The slowness: [what is slow, how slow, and when it got slow]. The system: [stack, architecture sketch, data sizes]. What I have tried: [attempts]. Access I have: [profilers, APM, logs, or just print statements].

Hunt the bottleneck:
1. Form 4 hypotheses ranked by likelihood for my symptoms: N+1 queries, unbounded loops, serialization, memory pressure, cold caches, blocking I/O — pick the ones that fit and say why.
2. For each hypothesis: the cheapest measurement that confirms or kills it. Exact tool or code — no 'consider profiling'.
3. The instrumentation plan if I have no tooling: where to place 5 timers to bisect the slowness.
4. The classic false friends: optimizations people reach for here that rarely help (micro-caching everything, rewriting loops) and why.
5. The fix ladder: from 'config change' to 'query/index fix' to 'architecture change' — with expected gain and effort for each rung.
Rule: no fix before measurement. Make me promise in the plan.
#performance#optimization
💡 Replace the [brackets] with your details — the more specific, the sharper the answer.

More coding heat

💻 Coding

Rubber Duck Debugger Pro

A systematic bug hunt instead of staring at the screen for hours.

#debugging#workflow
💻 Coding

Code Reviewer With Taste

A senior-level review: correctness, style, and the stuff linters miss.

#review#quality
💻 Coding

Explain This Codebase

Paste unfamiliar code, get a map of what it actually does.

#learning#onboarding