Closed zhyzky closed 2 months ago
yes, because vim's popup window is not so good. Neovim would be faster.
I created an issue https://github.com/vim/vim/issues/15006.
yes, because vim's popup window is not so good. Neovim would be faster.
According to vim help, popup_create function allow buffer number being the first parameter. This can speedup the buffer oppenning. I think the real problerm is when navigate the buffer, getbufline is too slow.
I modified the code that we can only preview 4096 lines. This may speedup the preview.
I modified the code that we can only preview 4096 lines. This may speedup the preview.
Thanks for your work. But really little speedup.
vim --version
ornvim --version
: 9.0:echo has("python")
: 0:echo has("python3")
: 1:echo &pythondll
(only vim, not neovim)::echo &pythonthreedll
(only vim, not neovim)::py print(sys.version)
::py3 print(sys.version)
: 3.10.12:echo g:Lf_Debug_Cmd
::echo g:Lf_FilesFromCache
:Describe your question, feature request, or bug.
When vim has several large files (>100M) open, the leaderfbuffer got very slow. It seems this command would excute some file open operation, while the file already loaded.
Steps to reproduce
Actual behaviour
The buffer navigation should not be slower than it is inside vim.
Expected behaviour
Somooth navigation between buffers.