You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ali (@mosajjal) Indeed, most of the time is spent in $trySetDecorations. This is an API call that comes in from the extension host and my guess is that you have an extension that is creating spamming us with decorations.
Does the issue still occur when you launch VS Code w/ extensions disabled? From the command line: code --disable-extensions ?
Activity
bpasero commentedon Feb 5, 2017
Ali (@mosajjal) maybe you could run a CPU profile to see where most time is spend?
To create a CPU profile using developer tools in VS Code:
mosajjal commentedon Feb 5, 2017
I did for 4-5 times. Here's the CPU profile
CPU-20170205T220619.cpuprofile.txt
mosajjal commentedon Feb 5, 2017
looks like
internal/process/next_tick.jsis taking up some time. I'm not an expert on reading the profile but it sure looks like italexdima commentedon Feb 6, 2017
Ali (@mosajjal) Indeed, most of the time is spent in
$trySetDecorations. This is an API call that comes in from the extension host and my guess is that you have an extension that is creating spamming us with decorations.Does the issue still occur when you launch VS Code w/ extensions disabled? From the command line:
code --disable-extensions?mosajjal commentedon Feb 6, 2017
yes. It got fixed after disabling extensions.
Although I haven't installed anything out of ordinary in my vscode.
I'll disable these extensions one by one to find the "rouge" one and will open issue in the extension's repository.
thanks, you can go ahead and close this one if you want. Or I can provide more feedback about which extension caused the hiccup.
mosajjal commentedon Feb 6, 2017
ok I found the extension. It's the "Guides" which helps with python indentation.
alexdima commentedon Feb 6, 2017
Thank you for tracking it down. The best would be to let the extension author know about the perf issue in large files.