Performance issues with folding
See original GitHub issueUsing VSCode 1.63.3, MATLAB 2021b on macOS 12.1 I am having many performance problems. I have disabled all my extensions except this one. I have lintOnSave
set to false
, and have tried providing or commenting out the mlint path. Every time I save the Process Explorer shows extension host go up to 100% CPU and saving takes a couple of seconds for a MATLAB classdef ~1500 lines log. It is as if lint on save is still activated? General performance slows down too with extension host often hitting 100%. Disabling the extension and everything goes back to normal… Is there a way to fully disable linting?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:11
Top Results From Across the Web
Not Folding; the Black Hole of Power Query Performance
Merge Columns doesn't support query folding and it means it will affect performance badly. In this post I'll show you how this cause...
Read more >What To Do If Your Samsung Galaxy Z Fold 3 Keeps Lagging
One of the performance issues that you might experience with your Samsung Galaxy Z Fold 3 is when it lags when you use...
Read more >Why Are Simple Paper Folding Problems Difficult to Solve?
Why are simple print finishing problems often the hardest to solve? There is more to folding that sheet of paper than you thought!...
Read more >Folding@Home Tips and Tricks
With the current pandemic, and the increased interest in Folding@Home, they have been overwhelmed with increased traffic and work unit requests.
Read more >Measuring Folding@Home's performance impact
Folding@Home should only use CPU cycles your system would otherwise leave fallow, which means there should be no perceptible impact on ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The latest version of the service has significant folding perf improvements, you can test that in the terminal if you have NPM.
Hugefiles are still anemically slow but they don’t block the UI thread completely.
Okay so I’ve figured out the problem. 😳🙈
https://github.com/SNDST00M/vscode-textmate-languageservice/blob/v0.2.1/src/foldingProvider.ts#L97-L107
This is a loop algorithm that determines the line of the terminating token in the foldable. However, it does not terminate when the fold is completed and continues to loop until EOF token.
If there are 20 folds that’s >20 loops til EOF with potentially thousands of superfluous tokens. Etc.
I was focused on researching browser support but I’ll pause that and putt out an urgent fix for this ASAP