Source: EL4CTEO/fast-anything on GitHub (MIT; created 21 Nov 2026, early stage), README. Surfaced in a LinkedIn post by André Lindenberg. Benchmarks are the author's own.
The claim
Rewriting a whole app in Rust takes months. Most runtime sits in a few functions. So profile the app, have a coding agent port only the hottest pure functions, prove each port behaves identically on real recorded calls, and swap it in behind a reversible switch.
How it works
| Step | What happens |
|---|---|
scan | Profiles the running app and ranks functions by time spent multiplied by how portable they are (top-level, deterministic, plain-data inputs). It says why a function cannot move. |
port | Records up to 500 real calls of the chosen function and creates a one-function Rust crate plus a TASK.md for the agent. |
| agent | Claude Code, Codex or any stdin-driven command writes the Rust. |
verify | Release-builds the port and replays every recorded call, plus derived edge cases answered by the original. |
enable / disable | Swaps the Rust in or out via one marked block that is removed byte for byte. An env var forces the original at any time. |
bench, report | Times the whole app, original against Rust in interleaved runs, and emits a Markdown and SVG summary for the PR. |
It is distributed as a CLI (npm or cargo), a Claude Code plugin, an MCP server with eight tools, and a skill. Bindings: PyO3 for Python, napi-rs for Node and TypeScript. Ruby, Java, Go, PHP, C and C++ use one C entry point that takes and returns JSON.
The verification gate
Recorded calls are the authority. The agent cannot edit them.
Derived cases widen the recording: NaN, ±infinity, -0.0, zero and ±1, non-ASCII text, empty inputs, inputs up to 16x larger, and shrunk slices. The original answers each one.
Equality: values must match (floats within 1e-9), and the port must raise an error wherever the original does.
Performance gate: a correct port that is slower per call than the original (FFI overhead exceeding the work saved) is not enabled.
The README's example: a port that compared bytes instead of characters looked right, and 148 of 500 recorded calls caught it.
Results (author's runs)
| App | Before | After |
|---|---|---|
| Python fuzzy dedupe, 700 names | 4.91 s | 42 ms (116x) |
| PHP fuzzy dedupe, 600 names | 2.94 s | 53 ms (55x) |
| Go fuzzy dedupe, 3,000 names | 3.02 s | 144 ms (21x) |
| TypeScript fuzzy dedupe, 2,000 names | 3.11 s | 155 ms (20x) |
| Ruby fuzzy dedupe, 400 names | 3.13 s | 228 ms (14x) |
| C mandelbrot | 431 ms | 127 ms (3.4x) |
| Java fuzzy dedupe, 4,000 names | 3.50 s | 1.18 s (3x; 11x on the function, the rest is JVM start-up) |
| C++ fuzzy dedupe, 6,000 names | 3.02 s | 1.09 s (2.7x) |
A design point worth keeping: it ports the outermost loop it can, so execution crosses into Rust once rather than millions of times. Porting only the inner Levenshtein function gave 35x and 1.9x instead.
Where it fits
This is a narrow instance of "pointable" agent work. The original function is the authority, its behaviour at a recordable boundary (arguments in, value or error out) is the check, the agent cannot edit that check, and the job ships one function at a time behind a fallback. It is the per-function sibling of whole-app port tools that gate each unit on replayed recordings.
Tradeoffs
Scope. Only top-level, deterministic, plain-data functions qualify. Anything touching I/O, global state, object graphs or callbacks stays put.
Recording coverage. 500 calls from one run reflect that run's inputs. Derived edge cases help, but rare production shapes may be missing.
Two implementations. You now maintain the Python and the Rust, and must keep them in sync when the original changes.
Toolchain. Every environment needs a Rust toolchain and a build step. Each port is a separate crate, sharing one cache.
Benchmarks. The showcase is string-heavy fuzzy matching, a best case for native code. Typical I/O-bound services will see far less.
Failure modes
Hidden non-determinism (dict ordering, locale, time) making the original's own recorded answers unstable.
Floating-point semantics that differ beyond the 1e-9 tolerance on untested ranges.
The original function changing later while the stale Rust port stays enabled.
Unicode or encoding edge cases outside the derived set, the class the README's own example caught.
Review checklist
Record from production-like inputs, not just a demo run.
Add a CI job that re-records and re-verifies the port when the original function changes.
Keep the kill switch documented and tested.
Benchmark the whole request path, not just the function.
Check the function really is pure: no hidden global, time or randomness.
Related entries
R124 (rust-anything: whole-app port to Rust, gated unit by unit on recorded behaviour).
R216 (pointable work: a recorded original as the check that lets an agent run alone).
R190 (CLI-Anything: point an agent at an app and get a tested CLI).
R082 (Craft Anything: rebuild software, graded against the original).