---
title: "fast-anything ports slow functions to Rust and checks up to 500 calls"
id: "story-110"
canonical_url: "https://emergent.fm/stories/110"
markdown_url: "https://emergent.fm/stories/110/article.md"
published_at: "2026-11-23T03:16:46.188Z"
modified_at: "2026-11-23T03:16:46.188Z"
source_at: "2026-11-21T14:40:27.000Z"
topic: "coding_agents"
trust_label: "Reported"
publisher: "Emergent.FM"
---

# fast-anything ports slow functions to Rust and checks up to 500 calls

## Key points

- fast-anything ports slow top-level functions into single-function Rust crates and checks up to 500 calls before enabling them.
- In its own benchmarks on an i5-10500 Windows 11 machine, fast-anything cut a Python fuzzy dedupe app from 4.91s to 42ms, a 116x speedup.
- It installs via npm or cargo, requires a local Rust toolchain, and works with Claude Code, Codex, stdin prompt commands, or a built-in MCP server.

## fast-anything Benchmark and Requirements

- Python dedupe benchmark: 4.91s reduced to 42ms (116x speedup)
- Eligible functions: Top-level, deterministic, plain data only
- Verification rules: Checks up to 500 calls, edge cases, and per-call speed
- Install and toolchain: npm or cargo install; requires local Rust toolchain
- Agent integration: Claude Code, Codex, stdin prompt, or built-in MCP

Each port is a one-function Rust crate that compiles in seconds and shares a single .fast/target cache.

In its own benchmarks on an i5-10500 Windows 11 machine, fast-anything cut a Python fuzzy dedupe app from 4.91s to 42ms, a 116x speedup.

It works with Claude Code, Codex, any command that reads a prompt on stdin, or an MCP server built into the binary.

A port is not enabled if any recorded or edge case fails, or if calling into Rust is slower per call than the original.

This matters to builders with slow functions in Python, Node, Ruby, Go, Java, C#, PHP, C, C++, Kotlin, or R apps who do not want a full Rust rewrite.

Install fast-anything with npm or cargo and run fast-anything doctor to check your Rust toolchain, runtimes, and coding agents.

- **Requirements:** fast-anything only ports top-level, deterministic functions that take plain data, and it requires a local Rust toolchain to compile ports.

## Source

- <https://github.com/EL4CTEO/fast-anything>

Canonical page: <https://emergent.fm/stories/110>
