FixKit AI

Loop/Prompt Library / Build and ship it yourself

๐Ÿ’ฌ AI prompt: Make slow code faster

Part of my program is too slow and I don't know where to start.

Copy this prompt

Make [function/module] faster without changing its results. First run the benchmark and profiler and report the top 3 hotspots. Then try one optimization at a time, rerunning the correctness tests and benchmark after each. Never edit the tests or benchmark. Stop after 5 attempts and summarize what helped.

How to use it

  1. Open Claude (or Claude Code in your project folder).
  2. Paste the prompt and fill in every [bracket].
  3. Read what it changed or wrote before you keep it.

Not medical, legal or financial advice. The AI drafts; you decide and you press send.

Full recipe โ†’

More prompts like this

Build an app by describing it

I want to describe an app in plain English and get something working.

An AI coding agent for your real codebase

I already have code and want an agent that edits, runs and fixes it.

Take payments (cards or crypto)

How do I get paid for the thing I built?

Refactor code safely with an AI agent

This code works but it's a mess, and I'm scared to touch it.

Turn a bug report into a tested fix

A user reported a bug and I don't know where to start.

Give your AI agent a memory that lasts

My agent forgets everything between sessions and I keep re-explaining my project.