AI News
All projects
Tool

Fast-anything ports only the slow functions of Python, Node and other apps to Rust

A command-line tool and agent plugin that finds slow functions in an app, has a coding agent port them to Rust, and checks each port against recorded calls before swapping it in.

fast-anything by EL4CTEO · 3,829 GitHub stars when we found it · added

fast-anything profiles apps written in Python, Node, TypeScript, Ruby, Java, Go, PHP, C, C++, C# or R. It ranks their functions by time spent and by how portable they are, then has a coding agent port the best candidate to Rust. According to the README, each port is checked against up to 500 recorded real calls plus derived edge cases, and nothing is enabled until every case matches. Install it with npm i -g @el4cteo/fast-anything or cargo install fast-anything. Ports are compiled with the user's Rust toolchain from rustup. The project is MIT licensed. A run is a single command, such as fast-anything go --agent claude, python app.py.

The README's results table lists a Python fuzzy dedupe of 700 names dropping from 4.91s to 42ms, a 116x gain. A Java run improved 3x overall, which the README attributes to JVM startup, though the function itself got 11x. The author writes that porting the outermost loop matters more than porting the small function inside it. Porting only the inner levenshtein gave 35x and 1.9x in two cases. The numbers were measured on an i5-10500 under Windows 11, except for C and C++, which ran on a GitHub Actions Linux runner.

According to the README, only top-level, deterministic functions that take plain data can be ported. A scan reports why other functions cannot move yet. SYCL kernels run on the device and are not ported. Ruby, Java, Go, PHP, C, C++, C# and R need no headers or bindings, since the port is a Rust library with one C entry point. For agents, the repo ships a Claude Code plugin, a Codex plugin marketplace entry, an MCP server with eight tools, and a skill.

In the author's words

**fast-anything** finds those functions, has your coding agent port *only them* to Rust, proves the port gives the same results on real recorded calls, and swaps it in.

From the README or the author's post. We checked that the sentence is there, not that it is true.

When to reach for it

When an app is slow in a few functions and a full rewrite is off the table, porting only the outermost hot loop and checking it against recorded real calls before enabling it is worth copying.

Works with

Claude CodeCodexCursor

See it

AI wrote this entry from the project's own README or its author's post. What the project does, and that AI built it where the entry says so, are the author's statements, quoted here. Nobody at IKANGAI ran or tested it. How this list is made