question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Performance issues with folding

See original GitHub issue

Using 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:open
  • Created 2 years ago
  • Reactions:1
  • Comments:11

github_iconTop GitHub Comments

1reaction
ghostcommented, Apr 5, 2022

The latest version of the service has significant folding perf improvements, you can test that in the terminal if you have NPM.

$ cd ~/.vscode/extensions/gimly81.matlab
$ npm install vscode-textmate-languageservice@^latest

Hugefiles are still anemically slow but they don’t block the UI thread completely.

1reaction
ghostcommented, Mar 17, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found