Peter Steinberger 🦞· @steipete · X·· 2026-10-27AI 评分37
AI 导读
Peter Steinberger 表示周末测试了 Bun 的 AOT 编译器,性能提升达 2 至 3 倍,内存占用减少超过一半。帖中文末引用的内容补充说明,Bun AOT 还引入了 --trim 参数用于裁剪未使用模块,可使 macOS 上基于 Bun.serve 的二进制文件体积从 89 MB 缩减至 25 MB。
正文 · 原文
I spent some time on the weekend to test bun's AOT compiler and results are nothing short of amazing. Performance up 2-3x, memory use less than half.
Bun AOT also introduces `--trim` which deletes unused parts of Bun from the compiled binary On macOS, a binary that uses Bun.serve’s HTTP server goes from 89 MB to 25 MB https://t.co/BRVetpDKwW在 X 查看被引用的帖子
来源:Peter Steinberger 🦞 · x.com