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

It feels slow in use #730

Closed
a145789 opened this issue Nov 24, 2021 · 11 comments
Closed

It feels slow in use #730

a145789 opened this issue Nov 24, 2021 · 11 comments
Labels
duplicate This issue or pull request already exists

Comments

@a145789
Copy link

a145789 commented Nov 24, 2021

hello,I have been using it for a long time, maybe my project is too big, it always feels a little bit slow, prompt or save need to wait a long time, my situation is similar to the following link

https://learnku.com/vuejs/t/60948

now version: v0.29.6

Maybe my project problem, but this problem has bothered me for a long time, I want to ask for help.

My English is not good, sorry.

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Nov 24, 2021

For the file save time, you should be able to simply check editor.codeActionsOnSave to search the reason.

For the auto-complete time, it is best to provide a repro case.
Otherwise you need to profiling(#413) and provide the record, but profiling may not be able to solve, because it can only debug the performance shortcomings from volar code, but can't found the project side reason.

In addition, can you compare the auto-complete time of the same code in *.ts and *.vue to see if *.vue is much slower than *.ts.

My English is not good, sorry.

If you join Discord server(https://discord.gg/5bnSSSSBbK) we can talk in Chinese.

@ghost
Copy link

ghost commented Nov 25, 2021

2021-11-25_10-20-50

CPU-20211125T101919.cpuprofile.zip

Hope this profile can help you...

@johnsoncodehk
Copy link
Member

@zhubei1998 seems the profiling record shows some performance issues from volar, thank you to provide it!

@shunichio
Copy link

@johnsoncodehk 老师您好,今天更新了最新版本以后自动补全还是特别慢,然后按照方法试了一下,下面是分析的结果,请老师再看一下。
2021-11-29_16-23-19
2021-11-29_16-23-36
CPU-20211129T162004.cpuprofile.zip

@johnsoncodehk
Copy link
Member

@chivesssss thanks to provide profiling record.

Seems your project spent lot of time to calculate auto import, could you try no-auto-import branch? It was hardcode disabled auto import.

@shunichio
Copy link

@chivesssss thanks to provide profiling record.

Seems your project spent lot of time to calculate auto import, could you try no-auto-import branch? It was hardcode disabled auto import.

@johnsoncodehk 老师您好,拉取新的分支以后,简单测试了一下,虽然说还是要稍微停顿一下,但是在可接受范围内了,相较昨天的版本感觉快了很多。下面是截图:
2021-11-30_10-13-07

2021-11-30_10-13-56
CPU-20211130T101405.cpuprofile.zip

@johnsoncodehk
Copy link
Member

@chivesssss could you try 0.29.8 and no-auto-import branch last commit, I've add cache logic in 83f1447 due to your profiling.

@shunichio
Copy link

@chivesssss could you try 0.29.8 and no-auto-import branch last commit, I've add cache logic in 83f1447 due to your profiling.

@johnsoncodehk 您好,下面分别是no-auto-import分支和0.29.8版本的截图,在我验证的过程中,能够明显感觉到 no-auto-import 分支代码提示快很多。

no-auto-import 截图 ⬇️⬇️⬇️⬇️⬇️
no-auto-import-2021-11-30_12-22-31

no-auto-import-2021-11-30_12-23-14

CPU-No-Auto-Import.cpuprofile.zip

0.29.8 版本 截图 ⬇️⬇️⬇️⬇️⬇️

0 29 8-2021-11-30_12-33-20

0 29 8-2021-11-30_12-33-50

CPU-0.29.8-20211130T123233.cpuprofile.zip

@johnsoncodehk
Copy link
Member

Please track #808.

@johnsoncodehk johnsoncodehk added the duplicate This issue or pull request already exists label Dec 21, 2021
@rennzhang
Copy link

I just imported the import path when I import the path. How can I solve it?

QQ20220624-151547-HD.mp4

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Sep 21, 2022

@RennCheung please provide profiling record. (#413)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants