emacs-devel
[Top][All Lists]
Advanced

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

Re: Slow completion-at-point


From: Dmitry Gutov
Subject: Re: Slow completion-at-point
Date: Thu, 9 Nov 2023 14:10:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 09/11/2023 09:22, Juri Linkov wrote:
Here is some timing information for this issue:

I added the following around advice fragment to completion-at-point debug:

(let ((start (current-time)))
      ad-do-it
      (message "<%.4f %d gcs %.4f>"
               (float-time (time-subtract (current-time) start))
               gcs-done gc-elapsed))

Then I went to a shell buffer, and from my home directory (it contains
a subdir text) typed

cd te <tab>

Messages buffer shows the following:

~/
Making completion list...
Sole completion
<2.0219 14 gcs 1.2927>
Please try to get benchmark numbers after customizing the recently added
'completion-lazy-hilit'.

completion-lazy-hilit is not a user option. It's a defvar, intended for completion frontends to opt into deferred highlighting performed by completions styles.

IOW, whenever each completion UI is updated (that uses completion styles -- that is, calls completion-all-completions), all its users will see the benefits.



reply via email to

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