EL4CTEO/fast-anything

fast-anything first profiles the program, ranking functions by execution time and portability, then records real calls, generates a Rust package containing a single function, and hands it to agents like Claude Code and Codex for rewriting; verify compares each recorded call one by one, and only replaces the original code if all results match and single calls are faster, allowing a switch back to the original code at any time. Compared to the last entry, supported languages now include Kotlin and PowerShell, Android apps can use simpleperf on-device to rank the most time-consuming methods (ranking only, no porting), and the README now includes results from independently reproducing the Python example on a different machine.

fast-anything first profiles the program, ranking functions by execution time and portability, then records real calls, generates a Rust package containing a single function, and hands it to agents like Claude Code and Codex for rewriting; verify compares each recorded call one by one, and only replaces the original code if all results match and single calls are faster, allowing a switch back to the original code at any time. Compared to the last entry, supported languages now include Kotlin and PowerShell, Android apps can use simpleperf on-device to rank the most time-consuming methods (ranking only, no porting), and the README now includes results from independently reproducing the Python example on a different machine.

Why it matters Compared to the last entry, it adds Kotlin and PowerShell support, performance profiling for Android apps, and an additional speed test independently reproduced by others.

Stars 5556 (+226 / 24h)

Reasons

  • 226 new stars in 24 hours, total stars 5556 (indicating attention only); dual-licensed under MIT or Apache-2.0
  • 1 out of every 5 recorded calls are withheld from the agent to prevent rewrites from targeting only the samples

Usage

  • npm i -g @el4cteo/fast-anything, install the Rust toolchain, then run fast-anything go --agent claude -- python app.py; for Android apps, use fast-anything scan --android <package name> --duration 10

Risks

  • Only ports top-level, deterministic functions with plain data parameters; the speedup factors in the README are results from the author's example programs on specific machines, and speedups for multi-threaded ports vary with the number of CPU threads
  • Rewrites are performed by agents, so code quality depends on the model used

Open

GitHub

Explore the latest AI Radar updates