microsoft / microsoft/TypeScript-Sublime-Plugin

High CPU usage caused with Sublime Text 3

Open
#654 7 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs More Info
Dominant language
JavaScript
Stars
1.7k
Forks
236
Avg merge
21d 13h
Merged PRs (30d)
1

Description

(macOS High Sierra 10.13.4)

I'm noticing very high CPU usage on idle for ST3 when the TypeScript package is installed. 25% of my CPU (3.5GHz i5, iMac 5K Late 2014) is consumed just by running ST3 and opening up a ts file, when I remove the package, quit and run ST3 the idle sits under 4% as it should.

I thought it may be Sublime's issue as build 3154 included a fix for improving idle CPU usage, so I tried installing the latest dev build (3160) instead of my existing 3143 (latest stable), but idle CPU usage did not drop when using the TypeScript package.

Just in case it may matter: node version that I'm using is v9.10.1. (previously I was on v9.8.0, same issue)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the report in Sublime Text 3 with the TypeScript package and an open .ts file, using the noted macOS and Node versions. Compare idle CPU usage with the package removed; done means identifying and resolving the cause of the elevated idle usage and confirming CPU returns to the expected level.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.