Skip to content

TypeScript-Go Performance Issue #1507

@ChrisWiles

Description

@ChrisWiles

TypeScript-Go (tsgo) is performing much slower than expected — only about 28% faster than tsc (57s vs. 79s), whereas the promise was a 10x improvement (~7.9s). This is significantly below expectations.


Performance Results

Tool Duration Improvement
tsc 79s
tsgo 57s ~28% faster

Environment

  • CI Platform: GitHub Actions (ubuntu-latest, x86_64)

  • Node.js: v20.15.0

  • Memory: Standard runner allocation

  • Project: Large React Native (Expo bare)

  • Lines of Code: ~322K

  • TypeScript: 5.8.3

  • TypeScript-Go: @typescript/native-preview@7.0.0-dev.20250802.1


TypeScript Configuration

  • Strict Mode with multiple strict flags

  • Path Mapping: (@kojo/*, @graphql/*, etc.)

  • Target: ES2023, JSX: react-jsx

  • Incremental Compilation: Enabled

  • Skip Lib Check: Enabled


Command Setup

{
  "lint:typecheck": "node --max-old-space-size=8192 ./node_modules/.bin/tsc --noEmit",
  "lint:typecheck:tsgo": "tsgo --noEmit"
}

Any ideas or suggestions?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions