-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension causes high cpu load #35
Comments
Sorry for the looooong delay on this. Are you still seeing this issue? If yes, can you please upload the cpuprofile file. |
I might have a way to reproduce this:
This should open up the type declaration file Why is the extension running on non-markdown files, though? |
Thanks for the feedback.
It shouldn't, I'll look into it as soon as possible. |
Hey @brunnerh, I couldn't reproduce the way you told. Maybe you enabled the extension to the typescript language by mistake? Please look at your settings, look for the key I will continue to search for other ways to mitigate this kind of problem, but for now I will add a confirmation dialog to avoid the extension being enabled on other languages by mistake... |
Oh, you are correct, for some reason this setting has been modified, but i do not know why. Possibly because at some point i created tables in documentation texts and wanted to format them. "markdown-table-formatter.markdownGrammarScopes": [
"markdown",
"csharp",
"svelte",
"typescript"
], Still, the extension does not seem to handle large files too well and/or different languages cause it trouble. Maybe that could be improved? |
Of course it should handle large files better, this is now my priority. Thanks again. |
Hey @brunnerh and @nkprince007 I think I was able to solve the high CPU load. Can you folks test with this pre-release version, and give me feedback? @brunnerh now it should parse the 19k file in less than 2s, it was the results I got in my tests. Thanks in advance. |
Tested it and it appears to not cause any issues anymore. 👍 |
Glad to hear. I'll make some more tests today, and then release it later today, or tomorrow. Thanks for the feedback and helping identifying the problem. |
Should be fixed in v2.2.2 |
Performance
markdown-table-formatter
2.1.3
Linux x64 5.9.11-3-MANJARO
1.52.1
/tmp/fcrespo82.markdown-table-formatter-unresponsive.cpuprofile.txt
Find more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load
The text was updated successfully, but these errors were encountered: