# Fast\-Anything: Don't rewrite it in Rust. Rewrite the 5% that's slow

- HackerByte page: <https://hackerbyte.net/en/stories/an-approach-suggesting-to-rewrite-only-critical-slow-parts-in-different-language-50596155>
- Original source: <https://github.com/EL4CTEO/fast-anything>
- Hacker News discussion: <https://news.ycombinator.com/item?id=50596155>
- Submitted to Hacker News: 2026-11-22T04:10:09.000Z

An approach suggesting to rewrite only critical slow parts in different languages to improve software performance.

## AI-generated summary

Fast\-Anything is a tool that helps optimize slow parts of Python, Node.js, and Ruby applications by selectively rewriting performance\-critical functions in Rust. It profiles applications, identifies bottlenecks, uses coding agents to port these specific functions, and verifies the ported code against recorded real\-world calls to ensure functional equivalence before swapping them in. This approach aims to avoid the extensive time and resources typically required for a full application rewrite.

## Key points

- Profiles applications to find slow functions.
- Uses coding agents to port only the critical 5% to Rust.
- Verifies ported functions against recorded calls and edge cases.
- Offers reversible replacement of original code with Rust implementations.
- Supports multiple languages including Python, Node.js, Ruby, Java, Go, PHP, C, C\+\+, and C\#.
