Peter Krieg's blog

Faster Typescript


I was excited to see that Typescript announced that they’ve made a 10x performance improvement for their compiler. This has been my biggest complaint with typescript since using it and I think it’s a huge deal for software engineers going forward.

I remember adding the tsc check to our CI pipeline at logikcull, back when our typescript codebase was tiny. And over the years, watching the time to finish go from just a few seconds, to 10, to 20.. to needing us to bump up the memory of the machine instance. Currently, tsc alone takes 43 seconds for our setup.

Locally on my beefy macbook, tsc takes an average of 25 seconds. I installed go and cloned the typescript-go repo and tried running tsc with the new go version. Now 3.5 seconds!!

I don’t have anything else to add other than this is awesome and will improve DX and productivity a lot. Excited to also see what other features this unlocks for the typescript team to add in.