From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Too long completion delay time in LISP interaction mode. Date: Wed, 20 Oct 2021 09:20:38 +0200 Message-ID: <87h7dcrwf0.fsf@gnu.org> References: <87tuhcs2ov.fsf@gnu.org> <87pms0s0ex.fsf@gnu.org> <87lf2orz4c.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39797"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.0; emacs 29.0.50 Cc: help-gnu-emacs@gnu.org To: Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 20 09:26:04 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 1md5z9-000A6L-V9 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 09:26:03 +0200 Original-Received: from localhost ([::1]:51178 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1md5z7-0004Py-Pe for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 03:26:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1md5xW-0004N9-IX for help-gnu-emacs@gnu.org; Wed, 20 Oct 2021 03:24:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56572) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1md5xW-00069J-93; Wed, 20 Oct 2021 03:24:22 -0400 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:37905) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1md5xW-0005J2-5r; Wed, 20 Oct 2021 03:24:22 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id B9DC727C0054; Wed, 20 Oct 2021 03:24:21 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 20 Oct 2021 03:24:21 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddvfedguddufecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe evveeikeetkeeviefgfeffiedvteeguddvffeuueduveegtddthedvhfeuveffhfenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnod hmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedv leekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 20 Oct 2021 03:24:20 -0400 (EDT) In-reply-to: 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:133913 Archived-At: 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)))) Bye, Tassilo