編集部セレクト
遅いPythonの処理を5%だけ書き換えて116倍にした記録が公開されました。
fast-anything は遅い関数を見つけてRustに移し、記録した実際の呼び出しで前と同じ振る舞いかを確かめます。
READMEでは700件の名前のあいまい重複除去が4.91秒から42ミリ秒に短縮されています。
Claude Code のプラグインとして入り、Python・Node・Ruby・Go・PHPに対応します。
今日は手元でいちばん遅い処理を1つ選び、Rustへ移させてください。
出典の原文(引用)
Don't rewrite it in Rust. Rewrite the 5% that's slow: profile Python, Node or Ruby apps, port the hot functions with your coding agent, prove they behave the same. / Python fuzzy dedupe (700 names) | 4.91s | 42ms, 116× / /plugin marketplace add EL4CTEO/fast-anything, then /plugin install fast-anything@fast-anything / Python 3.10+ | JavaScript / TypeScript (Node 22+) | Ruby 3.3+ | Go 1.22+ | PHP 8.1+— github.com
