help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Too long completion delay time in LISP interaction mode.


From: Hongyi Zhao
Subject: Re: Too long completion delay time in LISP interaction mode.
Date: Thu, 21 Oct 2021 13:32:18 +0800

On Wed, Oct 20, 2021 at 3:24 PM Tassilo Horn <tsdh@gnu.org> wrote:
>
> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
>
> >> I also use corfu but I think now I know what happens.  The thing is
> >> that doing M-x profiler-report RET takes much longer (88% of the
> >> profiling time) than computing the completion candidates.  That is
> >> done in the
> >>
> >>     45   8% + ...
> >>
> >> part which you should also expand.
> >
> > Again, I don't know how to expand it.
>
> You hit RET on the line.
>
> > Anyway, after disabling the hotfuzz, the completion delay has been
> > reduced to an acceptable time.
>
> That's what I guessed.  It might make sense to have some fuzzy style
> (like hotfuzz or the built-in flex) as last entry in
> `completion-styles', though.  FWIW, I use
>
>   (setq completion-styles '(partial-completion substring flex))
>
> and
>
>   (setq completion-category-overrides
>         '((project-file
>            (styles partial-completion substring initials))
>           (file
>            (styles partial-completion substring initials))
>           (eglot

Can the above line be changed into the following?

             ((eglot lsp)


>            (styles partial-completion substring))))
>
> Bye,
> Tassilo



-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province



reply via email to

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