Skip to content
This repository was archived by the owner on Sep 1, 2026. It is now read-only.
This repository was archived by the owner on Sep 1, 2026. It is now read-only.

Elevated CPU usage in --watch mode when idle (compared to tsc) #3611

Closed

Description

@alexswan93

Watch mode is consistently using ~5-10% CPU while idle, compared to tsc which uses 0% while idle.

Using:

  • "@typescript/native-preview": "7.0.0-dev.20260324.1"
  • Win 11 x64

Steps to reproduce

Run tsgo --watch or tsgo --watch --noEmit on any project -> observe idle CPU usage.

Behavior with [email protected]

  • 0% CPU while idle

Behavior with tsgo

  • Tiny project (5 small files) using ~5% CPU consistently while idle
  • Medium project (hundreds) using ~10% CPU consistently while idle

The idle CPU utilisation was improved massively by the recent watch mode updates 😄 but especially for those like myself on resource-limited machines even this remaining amount constitutes a barrier to using watch mode.

I am currently working around this by using my own file watcher to invoke tsgo --incremental

Activity

  1. DanielRosenwasser commented on Apr 28, 2026

    @DanielRosenwasser
    Member

    Our current strategy is naive polling at a fixed frequency, but it doesn't feel like it should be that taxing. Jake Bailey (@jakebailey) is looking into getting some perf infrastructure over at #3627 in so we can better measure what's happening.

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

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions