Profile, port the hot 5% to Rust, prove it, ship it
fast-anything finds the few functions eating your runtime, has your coding agent port just those to Rust, and verifies the port against real recorded calls before swapping it in.
fast-anything profiles an app, has a coding agent port only the hot functions to Rust, and proves the port against real recorded calls before anything gets swapped in.

What it does: It profiles a running app (Python, Node, Ruby, Java, Go, PHP, C, C++, C#, R), ranks functions by time spent times how portable they are, then hands your coding agent a one-function Rust crate plus a TASK.md. It records up to 500 real calls to that function, replays them against the compiled Rust version, and only then swaps the port in, byte for byte reversibly via a marked block in your source.
The interesting bit: The verification is the whole trick. Ports that look right get caught by real recorded calls (the README shows one that compared bytes instead of characters, flagged on 148 of 500 calls), plus derived edge cases like NaN, -0.0, non-ASCII text and oversized inputs. A port that is correct but slower per call than the original, because crossing into Rust costs more than the work saved, is rejected too.
Key highlights
- Ports the outermost loop it can, so the app crosses into Rust once instead of millions of times; porting only the inner
levenshteingave 35× and 1.9× in their examples - Reported results include a Python fuzzy dedupe at 116× and TypeScript at 20×, on an i5-10500 with Windows 11, reproducible from
examples/ - Each port is a one-function crate sharing one
.fast/targetcache: seconds to compile, not minutes - Works as a Claude Code plugin, a built-in MCP server with 8 tools, or a plain skill file for any agent;
--agentalso acceptscodexor any stdin-prompt command - Most languages need no headers or bindings: the port is a Rust library with one C entry point taking and returning JSON, so anything that can call C can use the bridge
Caveats
- Only top-level, deterministic functions taking plain data qualify;
scanexplains why anything else can’t move yet - Benchmarks are the authors’ own runs on their hardware, and the Java example’s 3× whole-app gain is mostly eaten by JVM startup
- Requires a Rust toolchain, and SYCL kernels are out of scope
Verdict: Worth a look if you have a slow script or service where a couple of functions dominate runtime and you’d rather not hand-write FFI. If your bottleneck is I/O, startup or the framework itself, this has nothing to port.
Frequently asked
- What is EL4CTEO/fast-anything?
- fast-anything finds the few functions eating your runtime, has your coding agent port just those to Rust, and verifies the port against real recorded calls before swapping it in.
- Is fast-anything open source?
- Yes — EL4CTEO/fast-anything is open source, released under the MIT license.
- What language is fast-anything written in?
- EL4CTEO/fast-anything is primarily written in Rust.
- How popular is fast-anything?
- EL4CTEO/fast-anything has 2k stars on GitHub.
- Where can I find fast-anything?
- EL4CTEO/fast-anything is on GitHub at https://github.com/EL4CTEO/fast-anything.