-
Notifications
You must be signed in to change notification settings - Fork 645
New Code Lens Feature Trashes CPU On Scroll #963
Comments
yes thats crazy, I assumed that VS Code will re-use the data while scrolling if there is no change to the document. But looks like even a slight scrolling is resulting in vscode asking for references all over again. I'll look into what options we have. Thanks for reporting! Meanwhile you can set |
What about disabling this feature by default and leave as experimental while it's not performing as expected? I guess it's causing more harm than good at the moment. |
The issue was that a new codelens object was being returned after being resolved due to which the cached result was always getting invalidated. With the commit above, the references will only be recalculated when there is change followed by scroll in the document. This still may be expensive especially in Windows where guru is known to be slow. Will consider disabling by default. |
Alright, the perf issue while scrolling without making any change to the document is fixed. "go.enableCodeLens": {
"references": false,
"runtest": true
} @thedillonb Do give it a try |
The new code lens feature, while awesome, is going to town on my CPU when simply scrolling through go files. The GURU process spawns and immediately eats into available CPU:
This results in a choppy scroll experience and only subsides when left alone for a while. My only course of action to mitigate this is to add:
I am running on OSX 10.12.1 on the latest VS Code and VSCode-Go releases.
The text was updated successfully, but these errors were encountered: