Fundamentals 6 min read

Microsoft Rewrites TypeScript Compiler in Go, Achieving Over 10× Speed Boost

Microsoft’s TypeScript team announced a Go‑based rewrite of the compiler that delivers up to a 13.5× speed increase in type checking, halves memory usage, and cuts project load times by eightfold, with a roadmap spanning TypeScript 5.x through the native Go 7.0 “Corsa” release.

Full-Stack Cultivation Path
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Microsoft Rewrites TypeScript Compiler in Go, Achieving Over 10× Speed Boost

Performance Gains

Microsoft’s TypeScript team revealed that the new Go‑implemented compiler can accelerate type‑checking by roughly ten‑fold on large codebases and reduce memory consumption by about 50%.

VS Code (1.505 M lines): type‑checking time drops from 77.8 s to 7.5 s (10.4× faster)

Playwright (356 k lines): 11.1 s → 1.1 s (10.1× faster)

TypeORM (270 k lines): 17.5 s → 1.3 s (13.5× faster)

rxjs (2.1 k lines): 1.1 s → 0.1 s (11.0× faster)

Build‑time Improvements

The core gains stem from Go’s efficient concurrency model and superior memory management, which shorten type‑checking time by about ten times, markedly speed up compilation of large projects, and make real‑time error detection smoother.

Editor Experience

Project load time in VS Code falls from 9.6 s to 1.2 s (≈8× faster), code‑completion responses are quicker, and type inference becomes noticeably faster, delivering a smoother development workflow.

Resource Consumption

Memory usage is cut roughly in half and CPU load is lower, with further optimisations planned.

Version Roadmap

Current TypeScript 5.x releases include 5.8 (already released) and the upcoming 5.9, which continue to improve the existing JavaScript‑based compiler.

Future milestones:

TypeScript 6.x will remain JavaScript‑based, ensuring compatibility with existing projects.

TypeScript 7.0, code‑named “Corsa”, will be the first native Go version, slated for mid‑2025 command‑line tool release and full feature parity by year‑end.

Both the 6.x (JavaScript) and 7.x (Go) tracks will be maintained, allowing users to choose migration timing.

Community Involvement

The team encourages developers to contribute via the public repository at https://github.com/microsoft/typescript-go, participate in a March 13 online Q&A, test the new compiler locally, and submit feedback through GitHub Issues. Trying the new version requires Go 1.24+ and Node.js with the hereby tool.

Future Outlook

The rewrite is positioned as a major upgrade to the TypeScript ecosystem, promising faster compilation, lower resource usage, and a more fluid editor experience, which should improve developer efficiency and collaboration on large projects.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

performanceTypeScriptCompilerGoRoadmapDeveloper Tools
Full-Stack Cultivation Path
Written by

Full-Stack Cultivation Path

Focused on sharing practical tech content about TypeScript, Vue 3, front-end architecture, and source code analysis.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.