Solving Your TypeScript Performance Problems
summary
Type checking time drops dramatically by upgrading to TS Go (author claims ~10x), and tiny PRs can shave minutes off CI; real examples show a sorting change going from 50s to 0.4s, an algorithm + typed array change giving 888x speed, and a 113x win on another case. Diagnostic and profiling tools include TypeScript’s --generateTrace, TypeSlayer (visualizes unions, shows a 981‑member union, finds undefined in 6,244 unions, links types to files), plus Attest and AreTheTypesWrong for CI checks.
AI-written summary · about
chapters (15)
- 0:00Introduction to TypeScript performance
- 1:30Why TypeScript performance matters
- 3:14How TypeScript type checker works
- 5:43Measuring TypeScript performance
- 7:49Libraries vs applications performance
- 8:51Performance testing fundamentals
- 10:36Career advice on performance wins
- 12:00Optimizing algorithms and inputs
- 13:25TypeScript type complexity spectrum
- 14:50Introducing TypeSlayer tool
- 21:33Other TypeScript performance tools
- 24:46Two-slash for type debugging
- 26:10Testing and benchmarking types
- 27:12Future of TypeScript and AI
- 28:35Summary and closing remarks
