🌐
GitHub
github.com › microsoft › Typescript › wiki › Performance
Performance · microsoft/TypeScript Wiki · GitHub
However, if we know enough about List<T>, we can reduce this assignability check to determining whether Dog is assignable to Animal (i.e. without considering each member of List<T>). (In particular, we need to know the variance of the type parameter T.) The compiler can only take full advantage of this potential speedup if the strictFunctionTypes flag is enabled (otherwise, it uses the slower, but more lenient, structural check). For this reason, we recommend building with --strictFunctionTypes (which is enabled by default under --strict). TypeScript compilation is often performed with other build tools in mind - especially when writing web apps that might involve a bundler.
Author   microsoft
🌐
Microsoft Developer Blogs
devblogs.microsoft.com › dev blogs › typescript › a 10x faster typescript
A 10x Faster TypeScript - TypeScript
March 11, 2025 - Our native implementation is already ... the TypeScript compiler itself. Here are times to run tsc on some popular codebases on GitHub of varying sizes: While we’re not yet feature-complete, these numbers are representative of the order of magnitude performance improvement you’ll see checking most codebases. We’re incredibly excited about the opportunities that this massive speed boost ...
Discussions

Resources for improving typescript performance?
Edit: Have been trying a few different things to try to speed up performance. I'm not having any luck speeding up intellisense, but I was able to start typescript in watch mode which type checks much faster (about 3 seconds instead of like 15). It pretty much has all the same benefits as the ... More on github.com
🌐 github.com
10
16
A 10x Faster TypeScript
Hey, Alex from the Angular team here! Angular was an early adopter of TS and built a lot of tooling on top of the language. Major, major congratulations to the TypeScript team!! In large, established codebases like this, it's common to fight for 2% or 3% performance improvements. A 10x improvement is virtually unheard of. This is a once in a lifetime kind of shift, and will totally transform the TypeScript experience. In recent years TS has become the way to write JS - it's almost a mandatory aspect of web development. At the same time, we've seen JS tooling undergoing a cycle of maturation, with a shift from JS-based plugins to native build tooling on par with the performance and DX of other languages. It's inspiring to see TS investing in this future as well. Angular ❤️s TypeScript, and we're excited to see what the web will do on top of this huge leap forward in build performance! More on reddit.com
🌐 r/typescript
197
1698
March 11, 2025
🌐
GitHub
github.com › typescript-cheatsheets › speed
GitHub - typescript-cheatsheets/speed: my TS project is slow. now what? · GitHub
January 17, 2020 - my TS project is slow. now what? Contribute to typescript-cheatsheets/speed development by creating an account on GitHub.
Starred by 34 users
Forked by 4 users
🌐
GitHub
github.com › marcj › TypeRunner
GitHub - marcj/TypeRunner: High-performance TypeScript compiler · GitHub
It consists of roughly 30k LoC and shows very promising results. The approach is to use a TypeScript-to-bytecode compiler and then to run the bytecode in a custom virtual machine.
Starred by 2.7K users
Forked by 39 users
Languages   C++
🌐
GitHub
github.com › topics › performance
performance · GitHub Topics
TypeScript · Sponsor · Star 3.5k · Make optimisation of images part of your automated build process · performance optimize compress pngcrush jpegoptim optipng webperf imageoptim gifsicle pngquant jpegtran image-optimisation jpegmini imagealpha pngout site-speed advpng ·
🌐
GitHub
github.com › topics › typing-speed-test
typing-speed-test · GitHub Topics · GitHub
A simple one-minute React app for testing your typing speed. typescript reactjs typing-game typing-practice react-typescript typing-speed typing-speed-test
🌐
GitHub
github.com › topics › speed-typing
speed-typing · GitHub Topics · GitHub
velociType – Speed Typing Analytics Platform A Next.js-based app for 15s/60s typing tests, real-time leaderboards, and detailed performance analytics. Built with TypeScript, Prisma, PostgreSQL, and Redis.
Top answer
1 of 1
22

Hi all, hoping to shed some light on this issue and provide a clear path out of it.

Let's assume the following scenario:

  • You have a big tRPC api with many routers, nested ones...etc
  • You're using zod as well in the api.

These two alone could be a challenge on the tsserver because of the nature in how they try to provide you with a lot of type-safety and do really smart things to get there, however that also makes it very hard on the TS LSP to calculate the types of things on the fly quickly as you are coding, hence why you see very slow auto-completions, errors being rendered on the editor...etc

Now how do we get around this?

  • If you are in a monorepo, you will need to build your tRPC api package and all of the other packages that are used in that api package, you need to generate the .d.ts and .js file combos in something like a dist folder, then export them in the package.json of the package. It is much much faster for the TS LSP to calculate the types of things if it's already built.
  • If you are not in a monorepo, it's probably going to be almost impossible to resolve this issue unless you move to a monorepo just because of the nature in that there is no concept of packages, making the whole compilation and using that very hard.

There are also many ways of having TypeScript setup in your monorepo, every single one of them will have this issue apart from actually building your packages before consuming them (built-packages) approach.

I have a reproduction/demo repository here: https://github.com/ixahmedxi/typescript-monorepo-demo

There are 4 branches apart from the main branch that each sets up TypeScript in a monorepo in a different way, the api generates 100 complex tRPC routers on postinstall. The only branch with no TS LSP performance issues is the built-packages branch, this is what you need to fully resolve this issue.

🌐
GitHub
github.com › topics › typing-speed
typing-speed · GitHub Topics · GitHub
A simple one-minute React app for testing your typing speed. typescript reactjs typing-game typing-practice react-typescript typing-speed typing-speed-test
Find elsewhere
🌐
GitHub
github.com › topics › speed
speed · GitHub Topics · GitHub
Converts bash script to C++ code. Useful for simple shell scripts that can be converted to C++ for speed.
🌐
GitHub
github.com › topics › network-speed
network-speed · GitHub Topics · GitHub
TypeScript · Sponsor · Star 0 · Track your network download, upload and ping. docker network-speed speed-tester speed-tracker · Updated · Jan 7, 2023 · TypeScript · Add a description, image, and links to the network-speed topic page so that developers can more easily learn about it.
🌐
GitHub
github.com › topics › typespeed
typespeed · GitHub Topics
Typing Speed Test is a simple web application that allows users to measure their typing speed. The app displays random words, and users have to type them as quickly and accurately as possible.
🌐
Reddit
reddit.com › r/typescript › a 10x faster typescript
r/typescript on Reddit: A 10x Faster TypeScript
March 11, 2025 - Interesting, only 5x faster by going to native code. Additional 5x faster by utilizing multithreading. I wonder how it handles node modules written in regular JS? Here's the repo, I think: https://github.com/microsoft/typescript-go
🌐
GitHub
github.com › topics › fast
Build software better, together
javascript fast events typescript optimization event-listener eventbus eventemitter emitter event-emitter fastest eventlistener eventemitter3
🌐
GitHub
github.com › microsoft › TypeScript › issues › 10878
Docs on improving compilation speed · Issue #10878 · microsoft/TypeScript
September 12, 2016 - With the --watch flag on, a recompile of an existing file generally takes 4 seconds now in our project. This isn't terrible at all, but the wait time has grown since we started using it. I was wondering what factors affect incremental co...
Author   microsoft
🌐
GitHub
github.com › microsoft › typescript-benchmarking
GitHub - microsoft/typescript-benchmarking: Infrastructure for TypeScript's performance benchmarking system · GitHub
This repo contains the infrastructure for TypeScript's benchmarking system, including build scripts and the ts-perf CLI tool.
Starred by 26 users
Forked by 4 users
Languages   TypeScript 76.3% | JavaScript 23.6%
🌐
GitHub
github.com › topics › playback-speed
playback-speed · GitHub Topics · GitHub
Easily change the playback speed of videos on Youtube, TikTok, Twitch, Vimeo, Netflix, Prime Video, Disney+ and many more video and streaming platforms. javascript youtube typescript video html5 svelte speed netflix playback-speed tailwindcss tiktok bunnycdn sveltekit daisyui
🌐
DEV Community
dev.to › extinctsion › typescript-just-got-faster-the-new-go-powered-tsc-40e0
TypeScript Just Got 10x Faster! 🚀 The New Go-Powered tsc - DEV Community
March 23, 2025 - But one common complaint has always been performance—TypeScript's compiler, tsc, could sometimes feel slow, especially in large projects.
🌐
Total TypeScript
totaltypescript.com › typescript-announces-go-rewrite
TypeScript Announces Go Rewrite, Achieves 10x Speedup | Total TypeScript
March 11, 2025 - Transpiling TypeScript files into JavaScript has gotten extraordinarily fast with tools like esbuild (written Go) and swc (written in Rust). But type-checking has remained slow. Now, the slowest part of your CI will become much faster - speeding up builds everywhere.
🌐
YouTube
youtube.com › watch
A 10x faster TypeScript - YouTube
Anders Hejlsberg, lead architect of TypeScript and Technical Fellow at Microsoft, introduces a new port of TypeScript that will deliver the next generation o...
Published   March 11, 2025