-
-
Notifications
You must be signed in to change notification settings - Fork 856
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
need to wait until finder command is done #1981
Comments
For tl;dr:
I'd have to take a look at the loop again, but I'm pretty sure that's mostly because the main thread is clogged with tasks and freezes. Appropriate parallelization would be the most important lever here. Intermittently, #1491 will yield the largest improvements, which would make If you don't need fuzzy matching but just "and" operator this input cb practically gives me speed parity for what I'm actually using (intersecting results by query terms). If you really need |
@fdschmidt93 thanks for the quick response. Do you mean that even when fps_mode will be implemented, the result will still be slow on big repos ? I work in HW design/verification, so the need to parse huge files and tags is unfortunately not a weird flex on my end. I actually wanted to re-implement an efficient So I thought of using I guess I will add a |
pro tip. If telescope doesn't work for you just use fzf.vim. Its a great tool Your issue is a duplicate of #1423 |
@Conni2461 , I'm sorry if I upset you, that was not my intent. I got seduced by 2 things in telescope.nvim:
Will fps_mode gonna fix the issue described in this ticket ? Btw, here is my implementation of live_tags: https://github.com/antoinemadec/telescope-git-browse.nvim/blob/0858d05f96c3f9091d1d0dda91a8713a91a119fc/lua/telescope/_extensions/git_browse.lua#L108-L157 |
At least I'm aware -- kudos, I loved that coc extension back when I was using coc :)
It depends. I'll be honest most likely not what you are expected from fps_mode will enable that the The second thing is rendering is more lazy (think "60 fps") and can be tuned. Both in combination open avenues for lots of speed improvements in a single thread alone. I'd expect 100K entries to be sorted fluently then in To truly match fzf, telescope will have to have parallelization. Maybe eventually we'll have rust-based backend or something, but that's a different story with its own complexities. Long story short, if you truly have these performance requirements (again, on |
Would a For info, I have been using it at work on ~1GB tag files for the past couple of days. |
Nope i dont think a But i am interested in merging the |
I flagged this as performance issue. This will be a "long term issue". fps will not fix all issues but it will help us make other changes in the future that might mitigate or even fix this issue. So this will not be fixed for 0.1 and will probably require a native component. |
Description
When a finder takes multiple seconds to generate all the entries, there are 2 issues:
Neovim version
Operating system and version
ManjaroLinux 21.2.6
checkhealth telescope
Steps to reproduce
nvim --clean -u minimal.vim
:lua require("telescope.builtin").grep_string({search = ""})
I tried with and without telescope-fzf-native.nvim and observed the same behavior
Expected behavior
I expect the screen to be refreshed without user input and the sort to take effect immediately.
This is how
fzf.vim
deals with commands that take time.It should behave like (even if slower than) this command:
rg --color=never --no-heading --with-filename --line-number --column --smart-case -- "" | fzf
Actual behavior
Minimal config
The text was updated successfully, but these errors were encountered: