
少改程式碼只加速選定函式,不必重寫整個應用程式
fast-anything 只改慢函式來加速
fast-anything 是 EL4CTEO 開發的開源工具,利用程式設計代理將應用程式中執行緩慢的函式移植到 Rust,不必重寫整個應用程式。工具已採 MIT 授權釋出;作者表示,替換用的程式碼必須在測試中產生相同輸出,且執行速度更快,才會啟用。
來源
程式碼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.由 AI 依據原文撰寫