Skip to content

performance issue with long list #433

Answered by minad
wybryk-ananasa asked this question in Q&A
Discussion options

You must be logged in to vote

500k is at least one magnitude too much. Vertico is supposed to handle up to 50k candidates well in it's default configuration. We cannot do much better due to technical limitations of the underlying APIs.

There are two possibilities to handle such a large amount of candidates, via using a custom completion style, but these approaches will also hit limitations.

  1. The completion style limits the number of returned candidates. This works only if candidates are presorted.
  2. The completion style requires a minimal input length, such that fewer candidates make it through the filter.

For option 2 see this code:

(defun +orderless-limited-all-completions (string table pred point)
  ;; Refuse to com…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by minad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants