From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Too long completion delay time in LISP interaction mode. Date: Wed, 20 Oct 2021 15:35:07 +0800 Message-ID: References: <87tuhcs2ov.fsf@gnu.org> <87pms0s0ex.fsf@gnu.org> <87lf2orz4c.fsf@gnu.org> <87h7dcrwf0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10737"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 20 09:36:21 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1md695-0002Yn-7m for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 09:36:19 +0200 Original-Received: from localhost ([::1]:34902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1md693-0004QS-8V for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 03:36:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1md689-0004Q3-Bg for help-gnu-emacs@gnu.org; Wed, 20 Oct 2021 03:35:21 -0400 Original-Received: from mail-vk1-xa2d.google.com ([2607:f8b0:4864:20::a2d]:34746) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1md687-0000N0-VY; Wed, 20 Oct 2021 03:35:21 -0400 Original-Received: by mail-vk1-xa2d.google.com with SMTP id bc10so4666958vkb.1; Wed, 20 Oct 2021 00:35:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iyThMtd1125YnLjlYHZSDmVoJS5sNAHpFvIL9QpUi5Q=; b=FIK7kiWcVLkFT/uwuXcBSjQZAOceJQYltxJXV72LecNLwAusJ8IIrogcZA/+Etb17Y OfpRNTP2DeXeXFYuVp/llIinOGUWetXC6I6nN3edHPM6HMvkf/ZL/rdl4CIBgGIXd5ts a2dGzin8mljan31/CIBhDkmyAyVp9rcaW+Q9hL/vexs7uFGirJs4l8sOew+/PkJ2nfpm pQ9xCTJf5/2ZD6znMYb/9TQEoa4E4o2ltQFeKFjFikhQIVvPBfsxdar+lUgQN/YleMNC vPGcP11enENsfdQa4v1Fg6aIoN0JCMKrfxMiy9Q4TQToi/4x7VK5h597YOFc1TO2CcUH iKUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iyThMtd1125YnLjlYHZSDmVoJS5sNAHpFvIL9QpUi5Q=; b=oNc8ySwBtg9xjOTHm63FuWQOpMlekwCGIAHI1PEaGKKYd8qr7hJPFgTmeYICqYrYut Qp16MHTsM8tNt/pgdkXWCSOUKwbVzaphxnmVhQrJ/7NV4VLZ5GrSzgLxYfx/KjL2bLjH Sp+LcMsBd5e2Cx82IP0sJp53bhov80QgyShNpB7VRC1lnBMEgGke3u1waUOWbhh5bNWE 0F/dIMx8EVPfV/Qr4Frygx+CgVTt7QZhrdPwyNrcVCOkUSR/s71a8dlIQu149mSPnX56 xXfCPbmToUNY8lyamEDM7UwSGMvByYBru0IDPVuOQJAuqGrJBbk+BAZIqQqu5zIWi4lR hGWw== X-Gm-Message-State: AOAM532XpIjhEZPtUv/hVUknK2d/MaiuAntLZV1Pk9W9mfo10HDS4pkY HEShreeLUJoH+Q/LIzDGB47Xgy/4ql8Mo6sfWl41XQAGwEaFUQ== X-Google-Smtp-Source: ABdhPJyV7Q17wb3Yig26O/3vnWCJ3pOb8SE27cn8FmqOHLffk7RSnoEbLsBf7FisgIPJqNdx/ryZ2gT6l8oEtbAxHJo= X-Received: by 2002:a1f:f8c9:: with SMTP id w192mr36998869vkh.6.1634715318615; Wed, 20 Oct 2021 00:35:18 -0700 (PDT) In-Reply-To: <87h7dcrwf0.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::a2d; envelope-from=hongyi.zhao@gmail.com; helo=mail-vk1-xa2d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133915 Archived-At: On Wed, Oct 20, 2021 at 3:24 PM Tassilo Horn wrote: > > Hongyi Zhao 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 > (styles partial-completion substring)))) Thank you for sharing your experience. HZ