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

feat: add max_traversed_entries option #67

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gregorias
Copy link

At my work, we have a huge monorepo with a directory with over 70k entries. This plugin, being synchronous, was blocking Neovim for tens of seconds.

This option should be universally useful to just time-box any search done by this plugin. I don't think it makes sense to leave this search unbounded as people expect interactivity from Neovim.

Perhaps, some change of API will make it possible to make search more optimal (e.g., a batch fetch), but even than a limit to how many entries Neovim has to process is relevant.

At my work, we have a huge monorepo with a directory with over 70k
entries. This plugin, being synchronous, was blocking Neovim for tens of
seconds.

This option should be universally useful to just time-box any search
done by this plugin. I don't think it makes sense to leave this
search unbounded as people expect interactivity from Neovim.

Perhaps, some change of API will make it possible to make search more
optimal (e.g., a batch fetch), but even than a limit to how many entries
Neovim has to process is relevant.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant