compiler-performance

Use when build times are slow. Use when optimizing TypeScript projects. Use when configuring project references. Use when dealing with large codebases. Use when improving IDE responsiveness.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "compiler-performance" with this command: npx skills add marius-townhouse/effective-typescript-skills/marius-townhouse-effective-typescript-skills-compiler-performance

Pay Attention to Compiler Performance

Overview

TypeScript compilation can become slow in large projects. Monitor and optimize compiler performance using techniques like project references, proper tsconfig settings, and avoiding expensive type patterns. Fast compilation improves developer experience.

When to Use This Skill

  • Build times are slow
  • Optimizing TypeScript projects
  • Configuring project references
  • Working with large codebases
  • Improving IDE responsiveness

The Iron Rule

Monitor and optimize TypeScript performance. Use project references, avoid expensive type patterns, and keep compilation fast.

Performance Tips

// AVOID: Expensive recursive types
type DeepPartial<T> = T extends object
  ? { [K in keyof T]?: DeepPartial<T[K]> }
  : T;

// PREFER: Iterative approaches, project references
// Split large projects using project references
// tsconfig.json optimizations
{
  "compilerOptions": {
    "incremental": true,        // Incremental compilation
    "tsBuildInfoFile": ".tsbuildinfo"
  }
}

Reference

  • Effective TypeScript, 2nd Edition by Dan Vanderkam
  • Item 78: Pay Attention to Compiler Performance

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

tsdoc-comments

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

code-gen-independent

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

tsconfig-options

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

module-by-module-migration

No summary provided by upstream source.

Repository SourceNeeds Review