Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

会拖慢保存文件的速度和其他插件的执行速度 #51

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

Closed
nookery opened this issue Feb 19, 2022 · 4 comments
Closed

会拖慢保存文件的速度和其他插件的执行速度 #51

nookery opened this issue Feb 19, 2022 · 4 comments

Comments

@nookery
Copy link

nookery commented Feb 19, 2022

一个300多行的blade文件,随意修改再保存,基本是瞬间保存;
安装这个插件,要大概等2秒才能保存成功。

另外,如果还有其他插件,其他插件的执行速度也变得特别慢,比如这个插件Laravel Blade Spacer,和Laravel goto view共同使用的话,要3秒才能起作用。

复现步骤:

  1. 用vscode打开一个300多行的blade文件
  2. 然后在Remote-Container中打开
  3. 然后测试上面的问题
@nookery
Copy link
Author

nookery commented Feb 19, 2022

#48
可能和这个是一个问题。

@codingyu
Copy link
Owner

嗯,这个扩展本质是根据字符串(匹配相关命名)去判断文件是否存在,
我还没找到什么好的方式重新实现(比如借助php,或者解析单个PHP文件)
Remote-Container 是不是本身还会有 io 速度的问题?

@nookery
Copy link
Author

nookery commented Feb 20, 2022

嗯,这个扩展本质是根据字符串(匹配相关命名)去判断文件是否存在,
我还没找到什么好的方式重新实现(比如借助php,或者解析单个PHP文件)
Remote-Container 是不是本身还会有 io 速度的问题?

宿主机文件行数多也没发现慢的问题,Remote-Container 文件行数少的话不明显,多就慢的明显,Remote-Container 性能肯定是差一些的。

@nookery
Copy link
Author

nookery commented Feb 20, 2022

看来是Docker的问题,如果是Mac,开启这个选项,能改善很多。
截屏2022-02-20 下午1 23 57

@nookery nookery closed this as completed Feb 20, 2022
Repository owner locked and limited conversation to collaborators Feb 22, 2022
@codingyu codingyu converted this issue into discussion #52 Feb 22, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants