From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#70796: 30.0.50; bug-reference-mode leading to constant GCing Date: Mon, 06 May 2024 14:35:42 +0200 Message-ID: References: <86ttjbb1pu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23200"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 70796@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 06 14:37:21 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 1s3xar-0005pJ-55 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 May 2024 14:37:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3xaf-0000oc-33; Mon, 06 May 2024 08:37:10 -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 1s3xaA-0000iJ-It for bug-gnu-emacs@gnu.org; Mon, 06 May 2024 08:36:42 -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 1s3xaA-0000vB-0u for bug-gnu-emacs@gnu.org; Mon, 06 May 2024 08:36:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s3xaY-0003gm-6H for bug-gnu-emacs@gnu.org; Mon, 06 May 2024 08:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 May 2024 12:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70796 X-GNU-PR-Package: emacs Original-Received: via spool by 70796-submit@debbugs.gnu.org id=B70796.171499897714161 (code B ref 70796); Mon, 06 May 2024 12:37:02 +0000 Original-Received: (at 70796) by debbugs.gnu.org; 6 May 2024 12:36:17 +0000 Original-Received: from localhost ([127.0.0.1]:37895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3xZp-0003gL-2n for submit@debbugs.gnu.org; Mon, 06 May 2024 08:36:17 -0400 Original-Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]:52567) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3xZm-0003gF-QX for 70796@debbugs.gnu.org; Mon, 06 May 2024 08:36:15 -0400 Original-Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a59ae3efbb3so167429166b.1 for <70796@debbugs.gnu.org>; Mon, 06 May 2024 05:35:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714998944; x=1715603744; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QLZPgaVfD/fdz20X/GjyDP1UI0bjSemERYGwbnt3h34=; b=ZpANHKN2C1KaP1xd09gU5rig92jqb3kHaP6OP05L+mvVCsfmoxHQRX43UcxXdtI0u3 pgKBlgvtfHVTiYDBuruFPpsoGGSgBF4kC8FFfvXG9rIDfSe3YX6dmiw/djZ0Wp+Cw0v4 VHViN3a+KZmMcZq7T9RgJymuxzV7DqRBpiOGRqNwx6+R0P7n3C1PLLIQORSqzeLn0Sb+ q4Mr+VKgyCbze22jpwbli3zBdT13Vu9vABwmWqfg8p+w6Sh2HF7OdWTl/bRU+duYWISS tJwId7YkQa4qf5Q6eOUXF8SFmVYvz6lcl+HOvlqflBIBEq2dTFjzZLsON/WS0RrtxsFH xevA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714998944; x=1715603744; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=QLZPgaVfD/fdz20X/GjyDP1UI0bjSemERYGwbnt3h34=; b=ApMdZY9fuMJE5aDsQZdugKlTLpv/iTK5AzBMEyLDT8ZOQCyIkZW6pgi0+PDbp74DmK SmZ63oJ6fN9axQk+GZZEXmkk6oZ4oVzN6WflnEALxMcneQQueGOt+FWl7/I+/30OogXz +cvjuA2htMSzviKm8Pwi2r8iN0eM6xepWlTtUiLCP2sAL0vIKxgLkz1rKEJCu2x1di5k bjBrKDIp8cfRYN4oAcrmg/WMIRNV7FN88RKUDGrOz5zhb2XsRs/IUAtA8RywH9P+SNQR +YyykqYBrfY+un4sz8D4Ahr+HeFDk9cE5qtf6FaJ8tDlD91Xt84HpGdJtpPuXdtIX67I lu5g== X-Gm-Message-State: AOJu0Yy+8OnuVyYbcrK7HwteL4D8tZ46FrGFFTg4B0BK51lzyWBzCqet JuBshUKl7lvrgE0BqrBo1hpTBaJVKAHNmGoyLWULEDYSUKZJeUjR2knhAQ== X-Google-Smtp-Source: AGHT+IG2tFdpd1+T9HnUZCUIBKymB+V0o4xt0dBIeoaITWsbI04gtKRCiVLfSeLT3aaVaSyqe4BCSg== X-Received: by 2002:a50:a693:0:b0:56e:2cb6:480e with SMTP id e19-20020a50a693000000b0056e2cb6480emr8510817edc.38.1714998943760; Mon, 06 May 2024 05:35:43 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a55e.dip0.t-ipconnect.de. [79.227.165.94]) by smtp.gmail.com with ESMTPSA id v21-20020aa7d9d5000000b005700ef75274sm5147315eds.33.2024.05.06.05.35.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 05:35:43 -0700 (PDT) In-Reply-To: <86ttjbb1pu.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 06 May 2024 14:48:29 +0300") 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:284577 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Date: Mon, 06 May 2024 08:53:29 +0200 >>=20 >> This is in an Emacs compiled from the branch scratch/igc, but I see the >> same in master. >>=20 >> When loading admin/igc.org in scratch/igc I see very frequent GC, even >> while doing nothing at all. Memory profiler shows this >>=20 >> 4,192,076,326 68% - redisplay_internal (C function) >> 2,997,520,400 48% - jit-lock-function >> 2,997,520,400 48% - jit-lock-fontify-now >> 2,982,457,616 48% - jit-lock--run-functions >> 2,982,457,616 48% - run-hook-wrapped >> 2,982,457,616 48% - # >> 2,769,181,376 45% - font-lock-fontify-region >> 2,769,181,376 45% - font-lock-default-fontify-region >> 2,707,362,176 44% - font-lock-fontify-keywords-region >> 276,400,512 4% + org-do-emphasis-faces >> 197,821,440 3% + org-fontify-drawers >> 197,821,440 3% + org-activate-links >> 197,821,440 3% + org-activate-tags >> 197,821,440 3% + org-activate-dates >> 197,821,440 3% + org-activate-footnote-links >> 197,821,440 3% + org-fontify-macros >> 197,821,440 3% + org-font-lock-add-priority-faces >> 197,821,440 3% + org-do-latex-and-related >> 197,821,440 3% + org-activate-code >> 197,821,440 3% + org-fontify-meta-lines-and-blocks >> 197,821,440 3% + org-fontify-inline-src-blocks >> 197,821,440 3% + org-cite-activate >> 57,104,384 0% re-search-forward >> 61,819,200 1% + font-lock-unfontify-region >> 213,276,240 3% + bug-reference-fontify >> 15,062,784 0% - run-with-timer >> 15,062,784 0% + apply >> 97,280 0% + file-remote-p >> 336 0% + desktop-auto-save-set-timer >> 144 0% + tab-bar-make-keymap >> 1,955,072,562 31% + command-execute >> 129,456 0% + timer-event-handler >> 1,024 0% + corfu--auto-post-command >> 0 0% ... > > Where's the evidence of "frequent GC" in this profile? I didn't say the profile is evidence of frequent GCs. > (And "memory profile" has nothing to do with memory usage, contrary to > popular belief.) > >> Disabling bug-reference-mode in the Org buffer makes it stop constantly >> GCing. > > I believe you. But showing the number of GCs (e.g., using the > variable gcs-done) would tell us the story more convincingly. > Alternatively, if you can share an Org file where this could be seen, > please do. So, believe me. Or not, as you please. I said where the Org file is at the beginning.