Skip to content

Medium to high CPU Usage when atom-typescript is enabled #1056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chris69 opened this issue Aug 18, 2016 · 8 comments
Closed

Medium to high CPU Usage when atom-typescript is enabled #1056

chris69 opened this issue Aug 18, 2016 · 8 comments

Comments

@chris69
Copy link

chris69 commented Aug 18, 2016

My 2013 Macbook with OS El Captain runs an AtomHelper process with 10-30% CPU usage, when atom-typescript is enabled in preferences. I have an typescript project open. The laptop becomes hot and the ventilators are running constantly. I had to disable the plugin at the end.

Can you please fix this? Thank you.

Tested with atom version 1.9.7 and 1.9.8 and atom-typescript version 10.1.6 (newest to date).

System:

Model Name: MacBook Pro
Model Identifier: MacBookPro10,1
Processor Name: Intel Core i7
Processor Speed: 2.7 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 6 MB
Memory: 16 GB

@leocorder
Copy link

Same issue here. Atom v1.9.9 and atom-typescript v10.1.6

@leocorder
Copy link

I managed to increase performance significantly by modifying the file tsconfig.json to this:

{
    "compilerOptions": {
        "target": "es5",
        "module": "commonjs",
        "moduleResolution": "node",
        "sourceMap": false,
        "emitDecoratorMetadata": true,
        "experimentalDecorators": true,
        "removeComments": false,
        "noImplicitAny": false
    },
    "exclude": [
        "node_modules",
        "platforms"
    ]
}

@alexwall
Copy link

The compilerOptions has no performance impact for me and

  "exclude": [
        "node_modules",
        "platforms"
    ]

does not really helps.

After opening one or more ts files Atom (atom-typescript) still starts to use 18%-30% of my CPU on my iMac (3.5 GHz Intel Core i5) for minutes, even if I change the focus to another application. After some time the cpu usage slows down, but when I just click in the atom editor without doing anything it starts again.

@al6x
Copy link

al6x commented Feb 20, 2017

Same, very slow and high CPU usage, macbook pro.

@nlaplante
Copy link

Same issue, on Windows 10. Very high CPU usage and typing in editor lags.

@alexwall
Copy link

alexwall commented Mar 3, 2017

Switching to atom-typescript-beta solved this problem for me.
See #1166

@alexwall
Copy link

I think this issue can closed after atom-typescript-beta is merged into the master branch

@guncha
Copy link
Contributor

guncha commented Mar 20, 2017

Yep, should be fixed now!

@guncha guncha closed this as completed Mar 20, 2017
@TypeStrong TypeStrong locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants