According to the project's description, an open-source project named fast-anything gained 1,730 stars on GitHub Trending on November 21, 2026. The project advocates not rewriting the entire application, but targeting the 5% of code that consumes most runtime. By profiling Python, Node.js, Ruby, and other languages' applications, it identifies hot functions, then uses a coding agent to port and optimize these functions in Rust. This approach achieves significant overall performance improvement while ensuring behavioral consistency.

Focused Hotspot Function Optimization Minimizes Rewriting Costs and Risks

fast-anything avoids the costly approach of rewriting whole applications in Rust, which involves long compilation times (minutes) and gigabytes of build cache. Most runtime is spent in a few functions, so the tool profiles the app using the `scan` command to rank functions by time and portability. Then, using `port [id]`, it records up to 500 real calls and creates a single-function Rust crate. The `verify` command builds a release version of the port and replays all recorded calls to ensure matching behavior and result correctness, including floating point comparisons within a tight tolerance. Users can toggle the Rust-optimized code with `enable` and `disable`; all changes are fully reversible. The process integrates with Rust toolchains seamlessly and leaves the rest of the app untouched.

Multi-Language Support and Real-World Gains from Tens to Over a Hundred Times Faster

fast-anything supports many major programming languages including Python 3.10+, Node.js (TypeScript), Ruby 3.3+, Java 22+, Kotlin/JVM, Go 1.22+, PHP 8.1+, as well as C, C++, C#, and R. Through a lightweight C ABI and JSON bridging approach, it does not require complex bindings. Benchmarks show dramatic speedups: for example, Python fuzzy deduplication runs reduced from 4.91 seconds to 42 milliseconds (116× faster). Other languages achieve 13x to 55x improvements. C/C++ Mandelbrot rendering sped up about 3.4×. Java and C++ improvements are limited by JVM startup time or function call overheads. The tool ports only the outermost loops to Rust to minimize crossing overhead, maximizing real-world gains.

Editor's take: Targeted hot-function rewrites open paths to large performance boosts

fast-anything offers a practical alternative to full rewrites by pinpointing the small, critical fraction of code responsible for most runtime and safely porting it to Rust. Its cross-language capabilities broaden applicability, while thorough behavior matching ensures stability. Startup teams facing performance bottlenecks unwilling to overhaul entire codebases can adopt such a tool to evaluate optimization potential concretely. The verification workflow includes profiling hot functions, step-by-step port recording and verification, and benchmark comparisons. The approach is user-friendly and transparent, helping startups rationally weigh benefits and risks, and encouraging new directions in optimizing project efficiency.