emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] `completing-read` - allow history=t, sorting improvements


From: Stefan Monnier
Subject: Re: [PATCH] `completing-read` - allow history=t, sorting improvements
Date: Mon, 19 Apr 2021 17:52:38 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> N is not that large. I want the sorting to be reasonably fast for the the
> candidate sets which occur now in Emacs.

Yes, but the log N factor in sorting is even much smaller.
You can basically treat it as a constant.

> But if this get improved, people may throw more candidates at it and
> then we will end up again with a threshold.

That's the main point, indeed: rather than try to handle larger sets, we
want to avoid larger sets.  That's why we have
`icomplete-show-matches-on-no-input` and `company-minimum-prefix-length`
(tho there can be other approaches like pushing the processing of sets
to a separate async process).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]