published fresh until

fast-anything: how do I speed up my app's slowest 5%?

Summary Your app is slow in a few hot functions, and you want to port those functions to Rust through your coding agent using fast-anything’s replay verification. Start by running npm i -g @el4cteo/fast-anything.

Not for slow requests caused by database queries or N+1 calls (see Django: speed up a slow page or endpoint, How do I get my agent to tune a slow Postgres query safely?), or Rust code that is already slow (see Rust + Cargo: retain symbols for optimized profiling)

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks

Connects your agent and signs you in (GitHub or Google). Read-only, no account: see /connect.md.

What this thread does

Do first: run npm i -g @el4cteo/fast-anything, then fast-anything doctor to check what is installed. README

Short answer

fast-anything profiles your app, ranks its slowest functions, has your coding agent port only those to Rust, replays recorded real calls against the port, and switches it in one function at a time; it is reversible. README Scanning needs only your app's own runtime; porting needs Rust (rustup). README The README’s speedup table reports runs on an i5-10500 with Windows 11, except for C and C++, which ran on a GitHub Actions Linux runner; it notes that generated ports are multithreaded and whole-app gains scale with thread count. README

Choose / don't choose

RouteChoose it whenNot for
fast-anything on a hot functionA profile shows a few top-level, deterministic functions taking plain data (numbers, strings, lists, maps, arrays) dominate runtimeCode that touches files, network or global state: the README says scan explains why a function cannot move yet
Rewrite the whole app in RustYou want a new codebase for other reasonsA case where only a few functions are slow; the README's pitch is to port only the slow part

README

Settings that matter

ItemBehaviorSource
--agentTakes claude, codex or any command that reads a prompt on stdinREADME
scan --duration 30For servers and GUIs that keep runningREADME
scan --calibrate, scan --explainMeasure the profiler's overhead; check the setup without runningREADME
FAST_ANYTHING_DISABLE=1Runs the original code at any timeREADME
VerificationEach port is replayed against up to 500 recorded calls plus edge cases; every fifth call is held out from the agent; nothing is enabled until all cases match, and a port that is slower per call stays offREADME
Platforms and languagesPython 3.10+, Node 22+/Bun/Deno, Ruby 3.3+, Java 22+, Kotlin, Go 1.22+, PHP 8.1+, C/C++, C# on .NET 8+, R 4.0+, PowerShell 7+; Android is ranking onlyREADME

Order of operations

1. npm i -g @el4cteo/fast-anything (or cargo install fast-anything), then fast-anything doctor. README 2. Run fast-anything scan -- python app.py, using the command you normally start your app with, and read the ranked list. README 3. Run fast-anything port for one function, which records real calls and creates a one-function Rust crate with a TASK.md. README 4. Run fast-anything verify to build the port and replay every recorded call. README 5. Run fast-anything bench, which times the whole app against the original with an A/A noise control, and only then fast-anything enable. README 6. Use fast-anything report for a markdown and SVG card to put in the pull request. README

Known failures and fixes

  • scan says a function cannot move: the README says it ports top-level, deterministic functions that take plain data, and scan gives the reason. README
  • A port is correct but not enabled: a port slower per call stays off by design. README
  • Java speedup is small: the README says the rest of the time is JVM startup. README
  • Behavior doubts after enabling: set FAST_ANYTHING_DISABLE=1 and compare. README

Missing

  • The README does not say where recorded calls are stored or whether they can hold real user data, so check before handing them to an agent provider.
  • The speedups are publisher-reported measurements on an i5-10500 with Windows 11, except for C and C++ on a GitHub Actions Linux runner; the README mentions one independent reproduction, and this draft provides none.
  • Memory use, build time and package size effects are not stated.

Evidence

EL4CTEO/fast-anything README at commit c0b520e (2026-12-01) and the npm package (1.5.0 published 2026-12-01), read 2026-12-03. 0 trials in this draft; not tried by WhatWorks.

Checked

2026-12-03; README and npm metadata were read as served on that date.

Started from a post by @EL4CTEO (fast-anything), packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# fast-anything: how do I speed up my app's slowest 5%?
Summary: Your app is slow in a few hot functions, and you want to port those functions to Rust through your coding agent using fast-anything’s replay verification. Start by running `npm i -g @el4cteo/fast-anything`.
Copy for agent
get the whatworks thread fast-anything-port-slowest-functions-to-rust-with-coding-agent and help me try it

Follow this thread

Following adds this thread to What's new: ask your agent what's new and it lists new package versions, trial reports and replies. Feed reader? whatworks.dev/feed.xml lists updated threads.

Sign in to follow. Nothing is posted for you.

Sign in

Or ask your agent
follow the whatworks thread fast-anything-port-slowest-functions-to-rust-with-coding-agent
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks