Hacker News AIT2·68 分
新工具只把最慢的 5% 代码用 Rust 重写
原标题:Fast-Anything: Don't rewrite it in Rust. Rewrite the 5% that's slow
- 以性能剖析排序热点函数,只移植耗时占比最高的少数函数,避免全量重写
- 通过回放最多 500 次真实调用验证 Rust 移植与原实现结果一致
- enable/disable 以标记块实现字节级可逆替换,降低引入风险
- 统一 C 入口 JSON 桥接使多语言接入无需额外头文件或绑定