Bad performance when open existing file.
- Dominant language
- Vim Script
- Stars
- 9
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
你好,我发现当激活此插件时,打开一个文档, vim 在 `opening buffers` 这个过程上将需要 1s 左右的时间。如果不激活此插件的话,打开相同文档在 `openning buffers` 这个过程上只需 76ms 左右。
比较奇怪的是如果不打开文档直接运行 `vim` 命令的话无论这个插件是否被激活 `opening buffers` 这个过程又只需 70ms 左右。
由此看来是不是在打开某一文档时,这个插件被调用给 vim 添加相应的字典,并且这个添加过程减慢了 `openning buffers` 这个过程呢?那么,是不是可以考虑利用 vim 的异步加载特性来解决这一问题呢?
启动时间是由给 vim 添加 `--starttime` 这个命令得到的。
[`vimrc` 代码](https://pastebin.ubuntu.com/p/cpQvDb7n2C/)
Vim version: 8.1
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked vimrc and reproduce the reported delay while opening an existing document in Vim 8.1. Use Vim's --starttime output to compare startup and buffer-opening timings with the plugin enabled and disabled. Done means identifying the plugin work responsible for the delay and documenting or implementing a validated performance improvement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vim
- Domain
- performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100