From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Howard Newsgroups: gmane.emacs.bugs Subject: bug#73592: 30.0.91; delayed output with completion preview mode Date: Wed, 02 Oct 2024 09:11:08 -0800 Message-ID: <87y136mnv7.fsf@librehacker.com> References: <87bk03xw4m.fsf@librehacker.com> <86o7430zwi.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="39680"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73592@debbugs.gnu.org, Eli Zaretskii To: Eshel Yaron Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 02 19:12:22 2024 Return-path: Envelope-to: geb-bug-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 1sw2th-000ABQ-MK for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Oct 2024 19:12:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sw2tP-0000X8-7x; Wed, 02 Oct 2024 13:12:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sw2tN-0000WD-Vk for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2024 13:12:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sw2tN-0003nW-Nt for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2024 13:12:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=RXuitdbIz+23mET2WmwZ5JCrgdYqffdFUtWBuHiyi2s=; b=iy7V4pjRjKGt7SxaODrOLa6HBsXKYSNyIhBai8UsilguNBu3itigIWnfzLmSOSiHpFpSQIzSLDaqaaYsDox1r3jsCplZRDPbTidEr0VjNb/g6tLqX0+M14L25QHt5y+gztAM4TqM6gDHo3OYX8PQDz5xeR2z3Jsh0hJ3npTkS0xZ7LM4+RF/Lhj/ITuoYc4iUJruZ8tOJ9BhNwmKeGaJ12VJVUCJJfb5e70q1GNSKeoYSeu3WWqx69kATklR53bWjOYy4p67u92V/7AA4vNbyQDktrIufupoNAZ892LYac68DXMW9eiTFmdrUDoIVqNeNrC8JAyk18aOROjNBlDmMw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sw2tO-0004e6-Cg for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2024 13:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christopher Howard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Oct 2024 17:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73592 X-GNU-PR-Package: emacs Original-Received: via spool by 73592-submit@debbugs.gnu.org id=B73592.172788908217809 (code B ref 73592); Wed, 02 Oct 2024 17:12:02 +0000 Original-Received: (at 73592) by debbugs.gnu.org; 2 Oct 2024 17:11:22 +0000 Original-Received: from localhost ([127.0.0.1]:59143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sw2sj-0004dA-Od for submit@debbugs.gnu.org; Wed, 02 Oct 2024 13:11:22 -0400 Original-Received: from mx.kolabnow.com ([212.103.80.154]:57300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sw2si-0004cx-8o for 73592@debbugs.gnu.org; Wed, 02 Oct 2024 13:11:20 -0400 Original-Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id DB0E234D413A; Wed, 2 Oct 2024 19:11:13 +0200 (CEST) Authentication-Results: ext-mx-out011.mykolab.com (amavis); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:mime-version:message-id:date:date :references:in-reply-to:subject:subject:from:from:received :received:received; s=dkim20240523; t=1727889073; x=1729703474; bh=RXuitdbIz+23mET2WmwZ5JCrgdYqffdFUtWBuHiyi2s=; b=bcNrc/asdupT QWjBlHAOavD5bdsTslTBSgN7oOzh2pV39sz2GiBJkEMMdVHWDzljTcNehnVvpkuI 4MsNpp+iTlfqGck5qJv2QV3yO6uEtMxYO9r1MR9xJKkf9HXI8xHV5293D4NNcXM6 fsBzgwF384aorWL9fmYf+IBDEeprKKjruCMik+xrLJ0cAjdidpunl1pqmnjaJTQu E52IgYVk87t4zWrYGnlMnxtqd3XkH9oOVaeOupYH8jWIUvjlte5Ni7FWXsH7MIL3 AKdvmcKSw34YLMt8zPV6CmEf8AyazrAuiuE7sBSXH5Lx7SvhH4YEoHRv/fheqO2o x+HMbB0Ygw== X-Virus-Scanned: amavis at mykolab.com Original-Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id ZTpRR1QPV4UU; Wed, 2 Oct 2024 19:11:13 +0200 (CEST) Original-Received: from int-mx009.mykolab.com (unknown [10.9.13.9]) by mx.kolabnow.com (Postfix) with ESMTPS id D0D2134D4139; Wed, 2 Oct 2024 19:11:12 +0200 (CEST) Original-Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx009.mykolab.com (Postfix) with ESMTPS id 06F7E209CCE5; Wed, 2 Oct 2024 19:11:12 +0200 (CEST) In-Reply-To: (Eshel Yaron's message of "Wed, 02 Oct 2024 09:24:31 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292851 Archived-At: Hi, I tried the trick with pressing C-g during the delay. But what happen is pressing C-g causes the character to immediately be outputted, and then the quit occurs while nothing is happening. Here is the memory profile report, focusing on the completion-preview functions: ``` 19,164,570 72% + command-execute 7,380,749 27% - completion-preview--post-command 7,378,491 27% - completion-preview--show 7,378,491 27% - completion-preview--try-update 7,378,491 27% - completion-preview--update 7,378,491 27% - run-hook-wrapped 7,378,491 27% - completion-preview--capf-wrapper 7,335,593 27% - completion-preview--try-table 7,322,689 27% - completion-all-completions 7,322,689 27% - completion--nth-completion 7,248,585 27% - # 7,248,585 27% - completion--twq-all 7,246,553 27% - mapcar 7,246,553 27% - # 6,578,265 24% - comint-quote-filename 6,577,241 24% - regexp-opt-charset 2,700,117 10% - map-char-table 2,700,117 10% - # 2,410,674 9% format 609,168 2% make-char-table 218,980 0% format 1,024 0% string-match 2,032 0% + comint--requote-argument 73,088 0% + seq-some 1,016 0% + # 11,888 0% + minibuffer--sort-by-length-alpha 42,898 0% + pcomplete-completions-at-point 2,258 0% + completion-preview-require-minimum-symbol-length 20,967 0% Automatic GC 12,400 0% redisplay_internal (C function) 0 0% ... ``` And here is the CPU report: ``` 1318 53% + command-execute 932 37% Automatic GC 200 8% - completion-preview--post-command 200 8% - completion-preview--show 200 8% - completion-preview--try-update 200 8% - completion-preview--update 200 8% - run-hook-wrapped 200 8% - completion-preview--capf-wrapper 184 7% - completion-preview--try-table 180 7% - completion-all-completions 180 7% - completion--nth-completion 92 3% - # 92 3% - completion--twq-all 92 3% - mapcar 88 3% - # 80 3% - comint-quote-filename 80 3% - regexp-opt-charset 24 0% - map-char-table 16 0% - # 16 0% format 4 0% format 88 3% - seq-some 88 3% - seq-do 88 3% - mapc 88 3% - # 88 3% - # 88 3% - completion-basic-all-completions 88 3% - completion-pcm--all-completions 88 3% - all-completions 88 3% - # 88 3% - # 68 2% all-completions 12 0% file-name-all-completions 8 0% - pcomplete-uniquify-list 8 0% - sort 4 0% # 4 0% + minibuffer--sort-by-length-alpha 16 0% + pcomplete-completions-at-point 28 1% + redisplay_internal (C function) 4 0% + timer-event-handler 0 0% ... ``` -- Christopher Howard