vscode-wl icon indicating copy to clipboard operation
vscode-wl copied to clipboard

performance issue 性能不好,有卡顿

Open khaotik opened this issue 6 years ago • 3 comments

At first, thanks for the effort into creating this plugin.


I feel like my vscode pauses every now and then as I type anything. Performance is much worse than using MMA frontend directly. My machine is Ubuntu 18.04, MMA 11.3, on a 6 core i5-8600k CPU, 16 GB DDR4 mem with SSD storage.

khaotik avatar Dec 18 '18 10:12 khaotik

In particular, vscode pauses whenever an auto-completion menu is about to show up.

khaotik avatar Dec 18 '18 10:12 khaotik

Thanks for your issue. Sorry about my plugin with such a serious problem.

This problem is generally caused by a bad regular expression that seriously affects text parsing. So try editing other files to see if there are performance issues. If the performance issue does only occur in files with specific paragraphs, please provide the relevant code.

Auto-completion is a problem that seems difficult to solve. The extension provides thousands of built-in symbols and their documentations (and there may be more in future versions), which may indeed cause the Caton. I'll try to solve it. If you have any good ideas, please let me know.

shigma avatar Dec 18 '18 15:12 shigma

It is probably caused by a bug from vscode-textmate as well. There are some issues similar to my problem.

shigma avatar Dec 21 '18 17:12 shigma