周末迁移到了 tsrs。直接替换。OC 速度约快 5 倍。微软一个团队花了两年重写 t... 有点惊人
行业动态 · 2026/10/21
作者周末将项目迁移到tsrs(TypeScript编译器的Rust移植版),这是一个可直接替换的版本,在OC场景下速度约提升5倍。作者感叹微软团队花了两年用Go重写TS编译器,而现在借助智能体在几周内就能得到显著更好的结果。VoidZero介绍了tsrs:与TypeScript团队紧密合作,并非fork;比TS 7.0快最多8倍,内存减少约70%;可在WASM中运行,因此能在浏览器和Workers中使用;即将成为Oxc的一部分。
文章介绍了tsrs这一高性能TypeScript编译器替代方案,其显著的性能提升和与官方团队的合作背景值得关注,尤其适合对构建工具性能敏感的开发者。
Moved to tsrs over the weekend. Drop-in replacement. Around 5x faster for OC.
Kind of amazing that it took Microsoft a team and two years to rewrite the TS compiler in go, and now you can just let an agent rip and get sth significantly better within weeks.<hr />VoidZero: Introducing tsrs: a Rust port of the TypeScript compiler 🦀
We are not forking TypeScript!
◆ In close collaborating with the TypeScript team
◆ Up to 8x faster than TS 7.0 & ~70% less memory
◆ Runs in WASM, so it works in your browser & on Workers
◆ Soon part of the Oxc