Performance
Diagnosing Performance Issues
- Latest version for TypeScript, dependencies, editor, plugins and extensions.
- Disable all editor extensions.
- No other hogging resources.
- Use strict compilation.
Fixing TypeScript performance problems:
tsc --listFilesOnly
tsc --explainFiles > explanations.md
tsc --extendedDiagnostics
tsc --generateTrace <output_dir>
node --max-old-space-size=8192 ./node_modules/.bin/tsc -b --extendedDiagnostics --generateTrace ./ts-trace
pnpm dlx analyze-trace ./ts-trace