top | item 33049807

(no title)

wwwigham | 3 years ago

When you can write a busy beaver machine in the type system, LOC ceases to be a good indicator or how long something should take to typecheck, imo. If you're frustrated with your build, you should use the trace tools on the TS wiki[1] to track down what types are slow to check, so you can attribute the slowness to the appropriate library authors/yourself and decide for yourself if the speed/correctness tradeoff they've made is right for you.

[1]https://github.com/microsoft/TypeScript-wiki/blob/main/Perfo...

discuss

order

david2ndaccount|3 years ago

My code is straightforward and doesn’t do advanced type operations.

scrollaway|3 years ago

Check your libraries. Some are really trash and mess with Typescript's speed. Material UI comes to mind.