
This content was generated with the help of AI and published without prior human review. It may contain errors and is not professional advice. Report a problem: info@delionsoft.com.
Cloudflare, VoidZero and Max Schwenk of Owner.com have announced tsrs, a Rust port of the TypeScript compiler incubated inside the Oxc toolchain. According to the original report, the work was done in close collaboration with the TypeScript team and is not a fork: language design stays with Microsoft. The project is open source under Apache-2.0 and explicitly labelled experimental.
What happened
Cloudflare's headline benchmark claims up to 8x faster type checking and roughly 70% less memory than TypeScript 7.0 at the same number of checker workers. Because it is Rust, it can also be compiled to WebAssembly, so checks can run in a browser or on Workers without shipping a garbage collector.
The numbers depend heavily on the baseline. One independent run of both npm packages measured 5.3x faster checking and 72% less memory, with identical diagnostics and byte-identical emit — but found that tsrs exits with code 2 on type errors where tsc exits 1, which can silently change the behaviour of a CI script. A separate measurement against the newer TypeScript 7.1 beta showed a smaller 2.7x gain. Daniel Rosenwasser of the TypeScript team noted that much of the speed is not purely about the choice of language, and that optimisations found in tsrs are being folded back into 7.1.
The port itself is notable for how it was built: Schwenk says he wrote no code by hand, instead directing coding agents and using TypeScript's own 15,197 conformance cases as the specification. On a 37,000-file monolith, he reports a check dropping from 80 seconds and 19 GiB to 7 seconds. Some developers have questioned whether the arena-based memory model, which never frees, is sound for long-running use.
Current gaps: no watch mode, no language server, --init and --showConfig unsupported, and diagnostic ordering can differ. tsrs tracks TypeScript 7, so teams on 5 or 6 should move to Microsoft's Go port (tsgo) first. Cloudflare also plans to merge Theo Browne's tsc-rs into the same package.
Why it matters
For a small team, compiler speed is not a vanity metric. Type checking is often the slowest gate in CI, and memory ceilings on shared runners are a real constraint on large monorepos. A drop-in checker that cuts both can shorten feedback loops and reduce build-minute spend without touching application code.
The risks are equally concrete. An experimental tool in the critical path of your release pipeline is a dependency you now have to maintain. The exit code difference is a good example of a change that passes a smoke test and then quietly weakens a quality gate.
What to do
- Benchmark on a branch, not in production CI. Run
tsrs -p . --noEmitalongside your current checker and diff diagnostics and emitted output before drawing conclusions. - Audit how your CI treats exit codes. If a step tests for code 1 specifically, fix it to fail on any non-zero result regardless of which checker you adopt.
- Keep tsc or tsgo for editor tooling. Without a language server, tsrs does not replace your IDE experience yet.
- If you are still on TypeScript 5 or 6, plan the move to TypeScript 7 first; tsrs only makes sense after that step.