fast-anything profiles apps in Python, JS, Go, JVM languages, PHP, C family, and more, then guides a coding agent to port only slow functions to Rust with replay verification.
Overview
fast-anything focuses on accelerating existing applications by finding the small fraction of functions that dominate runtime. A scan command profiles a normal start command, ranks portable hot spots, and prepares targeted Rust crates with agent-oriented task files.
Porting records real call inputs, verifies rebuilt native code against hundreds of replays plus edge cases, and only enables swaps when outputs match and performance improves. Enable and disable toggles let teams roll back instantly, and bench compares end-to-end timings with noise controls.
Bindings use PyO3 or napi-rs for Python and JavaScript, while other supported languages call a single C entry point through FFI without extra tooling. Android workflows rank methods via simpleperf but do not port device code yet.
The CLI integrates with Claude, Codex, or any stdin-driven agent via flags, and documents doctor checks for Rust and runtime prerequisites.
Key features
- Workload profiling scan command
- Agent-driven Rust port crates
- Replay and edge-case verification
- Per-function enable toggles
- Bench with noise control
- Many language runtimes supported
- Markdown PR report output
- Android simpleperf ranking
Use cases
- Speeding deduplication bottlenecks
- Selective Rust optimization
- Agent-assisted native ports
- Proving behavioral equivalence