From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#69246: 30.0.50; persistent key input delay after using vc commands in pgtk Date: Mon, 19 Feb 2024 05:28:31 +0200 Message-ID: <86a5nxqgio.fsf@gnu.org> References: <86ttm5r3ud.fsf@gnu.org> <86msrxr2l0.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10360"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69246@debbugs.gnu.org To: Nick OBrien Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 19 04:30:06 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 1rbuM1-0002TG-WD for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Feb 2024 04:30:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rbuLg-0000Ka-FF; Sun, 18 Feb 2024 22:29:44 -0500 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 1rbuLe-0000KI-Il for bug-gnu-emacs@gnu.org; Sun, 18 Feb 2024 22:29:42 -0500 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 1rbuLe-0000pf-AU for bug-gnu-emacs@gnu.org; Sun, 18 Feb 2024 22:29:42 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rbuLy-0000A5-Dq for bug-gnu-emacs@gnu.org; Sun, 18 Feb 2024 22:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Feb 2024 03:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69246 X-GNU-PR-Package: emacs Original-Received: via spool by 69246-submit@debbugs.gnu.org id=B69246.1708313361548 (code B ref 69246); Mon, 19 Feb 2024 03:30:02 +0000 Original-Received: (at 69246) by debbugs.gnu.org; 19 Feb 2024 03:29:21 +0000 Original-Received: from localhost ([127.0.0.1]:40101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbuLI-00008l-MF for submit@debbugs.gnu.org; Sun, 18 Feb 2024 22:29:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbuLD-00008R-LZ for 69246@debbugs.gnu.org; Sun, 18 Feb 2024 22:29:19 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rbuKn-0000ky-Bl; Sun, 18 Feb 2024 22:28:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=QAOxAwUbFGNiVXmCVDG39XKGgj9syK3TumdQgfR0xmc=; b=bwclccpQGaxx nrc/wLvQdwrhbSzJuOZCkTTcZ8mfjWmn0R4meJYVuXJA4nVDNLmruxCG7g/y2s/WYYYF6jY8OszKM PaqzjHxm7qAE5PzRx7bolkcw2YPhZHjeKZK6sWmBvsNOO7BKIZesyUu+A9F/Y34m6wysbF4nT4Kp4 /Bk03DPY+b5z9bffPo1X/Zv6dQZN+NxJ0zNjPFFarU2sIvjrHZP2CudiQfPTiOifCplhUC0yeqKQq bPRPJ4wpKLSTx8KfntRyW80PRx1r6Mm2If6MjfVYv0/xQcqYqu2ApfT4qbq13jPLOwmfsqoPAkMdU aou0irDRk6UCCkeX6MgCiA==; In-Reply-To: (message from Nick OBrien on Sun, 18 Feb 2024 20:36:46 +0000) 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:280230 Archived-At: > Date: Sun, 18 Feb 2024 20:36:46 +0000 > From: Nick OBrien > Cc: 69246@debbugs.gnu.org > > I ran the profiler twice: once before the input lag started, and once after. > Each time, I ran M-x profiler-start RET RET, repeated C-f C-b for roughly 20 > seconds, then ran M-x profiler-stop and M-x profiler-report. > > In the foo buffer before running vc-annotate (no noticeable input delay): > > 44 63% - command-execute > 44 63% - byte-code > 44 63% - read-extended-command > 44 63% - read-extended-command-1 > 44 63% - completing-read-default > 13 18% redisplay_internal (C function) > 24 34% redisplay_internal (C function) > 1 1% - undo-auto--add-boundary > 1 1% undo-auto--boundaries > 0 0% ... > > In the foo buffer after running vc-annotate, pressing p p n n, and killing the > vc-annotate buffer (noticeable input delay): > > 43 72% - command-execute > 42 71% - byte-code > 42 71% - read-extended-command > 42 71% - read-extended-command-1 > 42 71% - completing-read-default > 4 6% redisplay_internal (C function) > 2 3% - command-execute > 2 3% interactive-form > 1 1% - funcall-interactively > 1 1% execute-extended-command > 13 22% redisplay_internal (C function) > 3 5% - timer-event-handler > 3 5% - apply > 2 3% - show-paren-function > 1 1% show-paren--default > 1 1% - # > 1 1% jit-lock-context-fontify > 0 0% ... Thanks, but I don't see anything here which gives a hint why you see the lags, nor even evidence that there was a lag. Maybe try leaning on a key for 20 seconds, so that the keyboard auto-repeat produces keypresses at high frequency -- maybe then the profile will tell something.