Debug a Performance Problem
Find the N+1s, blocking calls, and hot loops, ranked by impact-per-effort.
Advanced1 min read
Customize
Fill these in and the prompt below updates as you type. Anything you leave blank stays as a placeholder.
Your prompt
6 placeholders leftMy {{stack}} application is slow. Here's what I know: What's slow: {{slow_operation}} How slow: {{current_latency}} Expected: {{target_latency}} Scale: {{scale}} Relevant code: {{code}} Analyze: what's the time complexity of this code? Where are the likely bottlenecks (N+1 queries, unnecessary loops, blocking calls, memory allocation)? Suggest fixes ranked by impact: highest-impact/lowest-effort first. For each fix, estimate the expected improvement and explain why.