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.

extension causes VS Code to slow significantly

See original GitHub issue

What is the problem?

Editing in VS Code slows down significantly when I have Markdown All in One enabled, especially on file sizes larger than 2k LOC.

How can I reproduce it?

I was following an issue on perf problems in the main VS Code repo https://github.com/microsoft/vscode/issues/87021 when I thought to go through my extensions. When I disabled Markdown All in One, VS Code regained it’s normal editing speed.

I checked some potentially related issues https://github.com/yzhang-gh/vscode-markdown/issues/444 but the cpuprofile.txt file they mention seems to have changed its file path since those tickets were opened.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
yzhang-ghcommented, Dec 18, 2019

Fun fact: We have performance optimization for large files (more than 128 KB), and your test file is 112 KB… If you keep writing and suddenly you will find VSCode get smoother 🤣.

I’m going to change the threshold to 50 KB.

0reactions
zachvalentacommented, Dec 19, 2019

Fun fact: We have performance optimization for large files (more than 128 KB), and your test file is 112 KB… If you keep writing and suddenly you will find VSCode get smoother 🤣.

I’m going to change the threshold to 50 KB.

Very cool stuff. 👍

Also, I noticed this slowdown seems particular to VS Code version 1.41 i.e. the most recent build; I have 1.40.2 on my work machine and don’t see any slowdown on larger files, so the root cause may have as much or more to do with VS Code than Markdown All in One (1.41 also broke another extension I use, albeit in a different way).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Here's How to Make VSCode Faster
Here are some things that may be causing VSCode to run slowly, ... The problem is that some extensions may be poorly programmed...
Read more >
Is Your VS Code Extension Slow? Here's How to Speed it Up!
One possible cause is the number of files or the size of the extension. Some extensions have so much functionality in them that...
Read more >
Is Your VS Code Extension Slow? Here's How to ... - John Papa
One possible cause is the number of files or the size of the extension. Some extensions have so much functionality in them that...
Read more >
Do extensions slow down VS Code? : r/vscode - Reddit
Extensions can disable themselves on certain conditions, but not all do. You can disable some extensions in specific workspace, that should help ...
Read more >
VS Code Performance – How to Optimize Visual Studio Code ...
The VSIX extension file is a compressed archive of files for the code and the listing in the marketplace. Developers often include unnecessary ......
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