It got slow

Measures where seconds actually go, narrows down waiting chains or repeated work, fixes only the #1 measured bottleneck, and re-measures to prove the speedup.

Broken or slowBugs, speed and dataRecipeDepends on the task

As one prompt15 linesRX07

StarMarkdown
It got slow. Measure where the time goes, fix only the single biggest measured bottleneck, and prove the speedup with before-and-after numbers.

Run these steps one at a time. Wait for my yes after each step. Stay strictly read-only during Steps 1, 2, 3, and 5 — do not edit code, data, or config until I approve Step 4.

Step 1 (measure end to end — read-only): Trace and measure the slowest user journey(s) from browser click to database response, identifying round trips, waterfalls, slow queries, repeated work, blocking synchronous handlers, or large loops. Bring back: a measured timing breakdown showing each step's share of total latency (file:line). If everything is already fast and costs are flat, say so and stop. Watch out: require real measurements, never guesses from static reading.

Step 2 (waiting chains — read-only, skip if Step 1 showed no sequential waits): Inspect the slow path for independent async steps waiting sequentially, and check shared transactions, pool sizes, and API rate limits before recommending parallelism. Bring back: each sequential chain (file:line), its measured time, and constraints to respect.

Step 3 (repeated work — read-only, skip if Step 1 showed no duplicate work): Inspect the slow path for expensive operations repeated with unchanged inputs. Bring back: each repeated call (file:line), frequency, measured cost, and exact cache-invalidation rules if caching is proposed.

Step 4 (fix the #1 bottleneck): After I approve, apply only the smallest fix targeting the single largest measured cost from Steps 1–3.

Step 5 (prove the speedup): Rerun the exact measurement method from Step 1 on realistic input and report exact before-and-after timings alongside an independent check that behavior stayed identical. If the speedup cannot be measured, state what evidence is missing instead of claiming a win.

Start your report in plain English: what you found, what it means, and whether I need to do anything. Put files, lines and commands underneath.
It got slowAs one prompt

Steps

  1. 1Slowest journeys, end to endtime the slowest user flows from click to database (read-only)
  2. 2Steps that wait for no reasoncheck whether independent steps are waiting sequentially (read-only, run if Step 1 shows waterfalls)
  3. 3Work repeated for nothingcheck for identical work running repeatedly (read-only, run if Step 1 shows repeated queries/renders)
  4. 4Fix only the #1 measured bottleneckwait for approval, then make one targeted fix
  5. 5Re-measure before vs. afterrerun the exact Step 1 measurement and verify nothing broke
Use it when
A screen or workflow feels sluggish and you want measured improvements instead of guesswork.