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#68249: 30.0.50; Rmail summaries much slower Date: Sun, 07 Jan 2024 09:27:21 +0200 Message-ID: <835y05siw6.fsf@gnu.org> References: <8334vcw45g.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25528"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68249@debbugs.gnu.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 07 08:28:20 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 1rMNa0-0006SG-H3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Jan 2024 08:28:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rMNZh-0004sZ-Bf; Sun, 07 Jan 2024 02:28:01 -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 1rMNZc-0004rx-SV for bug-gnu-emacs@gnu.org; Sun, 07 Jan 2024 02:27:58 -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 1rMNZc-0005BG-Jc for bug-gnu-emacs@gnu.org; Sun, 07 Jan 2024 02:27:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rMNZh-0004j4-KA for bug-gnu-emacs@gnu.org; Sun, 07 Jan 2024 02:28:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Jan 2024 07:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68249 X-GNU-PR-Package: emacs Original-Received: via spool by 68249-submit@debbugs.gnu.org id=B68249.170461246718140 (code B ref 68249); Sun, 07 Jan 2024 07:28:01 +0000 Original-Received: (at 68249) by debbugs.gnu.org; 7 Jan 2024 07:27:47 +0000 Original-Received: from localhost ([127.0.0.1]:60596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMNZS-0004iV-Op for submit@debbugs.gnu.org; Sun, 07 Jan 2024 02:27:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMNZQ-0004iI-ST for 68249@debbugs.gnu.org; Sun, 07 Jan 2024 02:27:45 -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 1rMNZG-00059V-0M for 68249@debbugs.gnu.org; Sun, 07 Jan 2024 02:27:34 -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=2zqaCHCWQSqncbTWQsoqfsJmOUaXCx6oBBDC1pw1ItQ=; b=nw3Q35rLXYdr 1sGry9MBhj5+DL1O/5U0y9IPHOHkwksP6fCKitmz5XdzYNVEbkRK+CxeAb+ijYoulaeRMDmEiMEpG 59LnOIzE4ENTqevehO7bhHl50qHKrhh4+h4yz5PrrCO1JfdM3pYpcHI97of+1xBF06QNqaYeLu9o6 KiVBHZi7zbyRbYPA6LyjBM4sRKOrwhtMGatosPWxvT+Ao0bbjdx+cvizZxZ96oQwjPk8e0a/IoXwl TjaKTOm22/pPZIML1rdc4zrHtJuEhrX9VbUUKQZ3hOKYRqBHR+ySF+tNYY72USFRAPBIGbnmZEDer bMXLJ72IH0/tg2cxSzQ8ow==; In-Reply-To: (message from Richard Stallman on Sat, 06 Jan 2024 23:31:45 -0500) 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:277498 Archived-At: > From: Richard Stallman > Cc: 68249@debbugs.gnu.org > Date: Sat, 06 Jan 2024 23:31:45 -0500 > > 1573 54% + command-execute > 1098 38% Automatic GC > 159 5% + timer-event-handler > 25 0% + ... > 19 0% redisplay_internal (C function) > 8 0% + rmail-summary-rmail-update > > I am not sure what that implies, since nothing in a loop > to check messages appears in it. You didn't expand the profile. All those lines which have a "+" before the function's name are "folded", and you can "unfold" them by going to the line and pressing RET. "C-u RET" will unfold _all_ such folded lines, and you will see the detailed profile of command-execute, which I think where the problem happens, and where you will find the loop that checks messages (or a function that runs such a loop). > Should I try this in the previous version for comparison? That could help, yes. But before that, I think a fully expanded ("unfolded") profile of the current version is needed. It is also strange that GC takes such a large proportion of time. It is possible that the slowdown is because some subroutine makes much more garbage than the previous implementation did.