Skip to content

typecheck plugin performance in watch mode #142

Description

@sidvishnoi

Thank you for this helpful plugin. To make it better, I wanted to report a performance issue.

There's a significant difference in how long it takes to typecheck with the plugin vs raw --tsc --noEmit --watch

Configuration:

      typecheckPlugin({
        buildMode: 'readonly',
        watch: true,
        configFile: path.join(__dirname, '..', 'tsconfig.json'),
      }),

In screenshot: top = typecheck plugin can be seen taking around 3s, bottom = tsc --noEmit --watch can be seen taking less than a second.

Comparing result on second run (after initial type-checking in both), and incremental compilation is not enabled in tsconfig.
The project has around 900 files (tsc --listFiles, including node_modules .d.ts files)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions