Skip to content
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

Performance Issues with VScode and Typescript #73470

Closed
Morphexe opened this issue May 8, 2019 · 8 comments
Closed

Performance Issues with VScode and Typescript #73470

Morphexe opened this issue May 8, 2019 · 8 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@Morphexe
Copy link

Morphexe commented May 8, 2019

Issue Type: Bug

I have trouble with vscode, this hapeens quite frequently and after open/close it goes away for a few minutes, sometimes over a couple of hours.

Vscode intellisense and even typings lags like hell, I can see the characters being typing slowly, also its using HUGE ammounts of ram for GPU rendering.
I have caught vscode hogging around 8GB of ram, although it was debugging, but I still feel thats too much.

I can't seem to pin point what exactly is causing this, I have tried without extentions and eventually it all does the same.

Attached is a print of my process explorer where you can see that the GPU process is hogging around 1GB, and so is TSServer. Notice that although I am currently on a surface pro, this happens in my own Desktop which has a 1080GTX and a 16gb Ram with Ryzen 1700. So something else is causing this.

On a side note, the project is not that big, it has around 2000 lines across 20ish files.

Any ideas on how to debug this?

VS Code version: Code 1.33.1 (51b0b28, 2019-04-11T08:27:14.102Z)
OS version: Windows_NT x64 10.0.17134

Process Explorer VscodePerformance
System Info
Item Value
CPUs Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 15.93GB (4.82GB free)
Process Argv C:\Users\Something\Something\Something\Something\Something.ClientApp
Screen Reader no
VM 0%
Extensions (21)
Extension Author (truncated) Version
rainbow-brackets 2gu 0.0.6
better-comments aar 2.0.3
vscode-browser-preview auc 0.5.4
bracket-pair-colorizer-2 Coe 0.0.28
gitlens eam 9.7.1
prettier-vscode esb 1.9.0
auto-close-tag for 0.5.6
auto-rename-tag for 0.0.15
easy-snippet inu 0.1.4
vscode-styled-components jpo 0.0.26
graphql-for-vscode kum 1.13.1
vscode-typescript-tslint-plugin ms- 1.0.0
vscode-jscpd pau 0.3.4
quicktype qui 12.0.46
yo sam 0.9.3
code-settings-sync Sha 3.2.9
highlight-matching-tag vin 0.9.1
vscodeintellicode Vis 1.1.6
vscode-icons vsc 8.6.0
quokka-vscode Wal 1.0.212
glean wix 4.10.3
@jrieken jrieken assigned jrieken and unassigned jrieken May 8, 2019
@jrieken
Copy link
Member

jrieken commented May 8, 2019

Please use this guide to provide more information: https://github.com/Microsoft/vscode/wiki/Performance-Issues. Thanks.

@jrieken jrieken added the info-needed Issue requires more information from poster label May 9, 2019
@FishOrBear
Copy link

FishOrBear commented May 9, 2019

In fact, this is very difficult to reproduce, I often press F1, then restart the TS Service

@jrieken
Copy link
Member

jrieken commented May 9, 2019

On a side note, the project is not that big, it has around 2000 lines across 20ish files.

Do you have node-module dependencies? Do you have a rough estimate how many children the node_modules-folder has?

@ben-denzer
Copy link

@jrieken I came here to report the same issue, and I have been able to determine that the slowness does not happen after I remove my node_modules folder. I'm using create-react-app with a few added dependencies so my node_modules folder is pretty large (281Mb) - but uninstalling VS Code 1.33 and installing the Feb release (1.32) fixes my problem.

@mjbvz
Copy link
Collaborator

mjbvz commented May 10, 2019

@Morphexe Can you share your project? Also, does this reproduce in the latest VS Code insiders build with all extensions disabled?

@FishOrBear
Copy link

Is it likely to be related to this?

microsoft/TypeScript#30663

@ben-denzer
Copy link

In my case I use styled components withe Typescript 3.3.333 - I had initially suspected styled-components as I have had issues w/ their VS Code extension before.

But downgrading VS Code is the easy solution for me

@mjbvz
Copy link
Collaborator

mjbvz commented May 17, 2019

Closing as more information is needed from the original poster

@Morphexe Please test this using the latest VS Code insiders builds (using TS 3.5-insiders) and let us know if you still see this issue

@mjbvz mjbvz closed this as completed May 17, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Jul 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

5 participants