AI 热点

fast-anything 用编码智能体将应用性能热点局部移植到 Rust

Hacker News 热门更新于 11月22日 17:54

GitHub - EL4CTEO/fast-anything: 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. · GitHub

AI 导读

fast-anything 可分析 Python、Node、Ruby 等应用的性能热点,让编码智能体仅将慢函数移植到 Rust,并在验证行为一致且速度更快后启用。它会记录最多 500 次真实调用,派生边界与缩减测试用例,并支持随时切回原实现。仓库给出的实测中,Python 模糊去重从 4.91s 降至 42ms,提速 116×;工具还内置面向 Claude Code、Codex 和 Cursor 等的 MCP server。

推荐理由

精选AI 评分 77

该工具把性能分析、局部 Rust 移植、行为校验和回滚串成完整流程,为渐进式优化多语言应用提供了可复用方案。

主题

标签

正文

当前公开范围只允许站内摘要。请通过经校验的原文入口继续阅读。

来源

Hacker News 热门