Skip to content
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

performance issue 性能不好,有卡顿 #7

Open
khaotik opened this issue Dec 18, 2018 · 3 comments
Open

performance issue 性能不好,有卡顿 #7

khaotik opened this issue Dec 18, 2018 · 3 comments

Comments

@khaotik
Copy link

khaotik commented Dec 18, 2018

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 khaotik changed the title performance issue performance issue 性能不好,有卡顿 Dec 18, 2018
@khaotik
Copy link
Author

khaotik commented Dec 18, 2018

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

@shigma
Copy link
Owner

shigma commented Dec 18, 2018

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
Copy link
Owner

shigma commented Dec 21, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants