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.
Tech stack or framework preference
The specific call or query that's slow
How slow it is today, with a real number
The speed to aim for
The size this needs to handle
Paste the code this should work on
Your prompt
My {{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.