From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id aHDsCD1RqmWJaQEAe85BDQ:P1 (envelope-from ) for ; Fri, 19 Jan 2024 11:38:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id aHDsCD1RqmWJaQEAe85BDQ (envelope-from ) for ; Fri, 19 Jan 2024 11:38:53 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=151e.ai header.s=fm2 header.b=yDx7kFfv; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=FUqDP654; dmarc=pass (policy=none) header.from=151e.ai; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705660733; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=mXXEGKoQJ0OnDV5QGQqX9NT1EBiKfujH97rTe2DzTvU=; b=Y32TYNYx0jlfhysbz+m1nEFKQMqFj5DGyHuwA4K3Tkp/eZZndp/oJOz6yT4Fz42srjX2Qi 6lMIGVwOewsgx5+rGXtFfW4O46NlmtCilTHANtwcBAZr5OWjYDTFwqCu/r6WOIHAmlIef7 t1xX6ehXpLbAaxcbt8X+d/D9zURvFK17deJQ/DUmFBlLsFnVLIyhG4lW4KjHbgwjietaG2 OxMTrJkf+WyVNy7CsnR3kJiEMTB513k03v894jdW9YHU7UcP4tb25cPAQzFACjttvcqpGx m4azoxHYWH0cLghh927pLRsDXds5gaPG6v8VtqbRHnpXhLezIfAIe4pogIC23Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705660733; a=rsa-sha256; cv=none; b=ZOAQCr0107K4eyEIKGNEeAZAJuolAvjQD9KgDQWazMyeVNWoy1P5CFv+Eafv/hH5EjKLoX l5tcbHGmhMDbFWoDsucrvZbN4/UFpJuJm2oMrKKasFKS1xmLN0+216KnghAJiDc8MdAqaT ZHVr58o8n/dzlBMJP45kTGnZ77A1aoG37R4HZhDZBHY0XbwIAcIkrlVbgkc3vDaWAzSCWv zFSeXJTuQfI2eof65KWCyDyPcSsiTyX7Aybwt+SAhg3/UaAETYbsKqVflR2OcJAEl7lW9a 56cZBoFZNlh7hfenz8V+N7ceMZmrg5H7QsjPvQLYvpqB/L17cMQ/XXQY6JYrpw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=151e.ai header.s=fm2 header.b=yDx7kFfv; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=FUqDP654; dmarc=pass (policy=none) header.from=151e.ai; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 72DF226F98 for ; Fri, 19 Jan 2024 11:38:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQmFu-0001as-AS; Fri, 19 Jan 2024 05:37:46 -0500 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 1rQmFt-0001ai-CD for emacs-orgmode@gnu.org; Fri, 19 Jan 2024 05:37:45 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rQmFr-0001mu-2D for emacs-orgmode@gnu.org; Fri, 19 Jan 2024 05:37:45 -0500 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.west.internal (Postfix) with ESMTP id D1A433200AF0 for ; Fri, 19 Jan 2024 05:37:37 -0500 (EST) Received: from imap52 ([10.202.2.102]) by compute7.internal (MEProxy); Fri, 19 Jan 2024 05:37:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=151e.ai; h=cc :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm2; t=1705660657; x=1705747057; bh=mXXEGKoQJ0OnDV5QGQqX9NT1EBiKfujH 97rTe2DzTvU=; b=yDx7kFfviPA9vkOJUE9/wnKgO4M2zCg6VDjY4eNQmF7/cC7N U6yNe7dCVKxhVv54iX0gCadpdWy9huzXm8jUBkeJMubxfZ4R/UlLKu00+sN8Xwer avpFxXzPPstjDHNYScuYonoI9wLr5KypCnx02oX6oOl+3sM/HaRrYtjiMVjavzVX +uE9ly84CaV2A9Rr5W8rL8IRRNaeIEqZMfogFUWXh0R2yWHo5L8XDPQZoSgI7SgZ s+1CqPAMYOXcdOWPkl8jhH/pgMHPD3rQt0+0AkybyTjZGVntBdARdMWmrBaJZiGR Rnl3nZFUIXHWKHi26NobL6/9ImHoF6Ez1yxhVg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1705660657; x=1705747057; bh=mXXEGKoQJ0OnDV5QGQqX9NT1EBiKfujH97r Te2DzTvU=; b=FUqDP654y9GOSiXbfogIDjkbQ/G5RZUFLpDHPTXaWnsx8yzXOQz 9R9EK3vvuIgRgZeQXlaWERE0uX1SbrHgZqlfsPeR/23g000K7AtXQOVLdU0PrTBa G+II6tf0iu8HG9wE4rmwlvZNwWR3FP1sdUqkWKE05Z6pHWDQ4wspl5e79K4Yz0fE R8sWVowban4TqAHGnYsCqi0Am0ZnqUQPWuSj21Ln/fZQspqSmSUKGa5bs7EJi24e 84vGfocLybIfpAanggmQrJuwNDa/0D1nKwkUkrbTRKni2xajSrMnfAuh9dDMUkaz L1ktet+C4C1D8hNenlqtn04I0KdE0GBJTPQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdektddgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpegurghrkhdrkhgvhiekjeelleesudehudgvrdgrihenucggtffr rghtthgvrhhnpeehheetgeegvdeuhfdvudefveehtdduuedvtddtkeduhedvkeegjeelje egueeuieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pegurghrkhdrkhgvhiekjeelleesudehudgvrdgrih X-ME-Proxy: Feedback-ID: i35d941ae:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 73754C60091; Fri, 19 Jan 2024 05:37:36 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1374-gc37f3abe3d-fm-20240102.001-gc37f3abe MIME-Version: 1.0 Message-Id: Date: Fri, 19 Jan 2024 18:35:37 +0800 From: dark.key8799@151e.ai To: emacs-orgmode@gnu.org Subject: Slowness of org-agenda-redo in org 9.7 vs 9.6.7 Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.21; envelope-from=dark.key8799@151e.ai; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -10.26 X-Spam-Score: -10.26 X-Migadu-Queue-Id: 72DF226F98 X-TUID: GiMXxDTPnVVF I've been running 9.7 for a few weeks and I've noticed a slowdown in `org-agenda-redo'. I finally ran some benchmarks. I can reproduce it with a minimal org config (bare init.el with only straight.el and a short org config) with my full `org-agenda-files' (~450 files). In my regular conf, both are faster than the report below (I suppose because of gc collection parameters), about ~10s and ~1s respectively. (use-package org ;:straight (:type built-in) :custom (org-agenda-inhibit-startup t) (org-agenda-dim-blocked-tasks nil) (org-agenda-window-setup 'current-window) (org-agenda-restore-windows-after-quit t) (org-agenda-show-future-repeats nil) (org-agenda-todo-ignore-scheduled 'all) (org-agenda-tags-todo-honor-ignore-options t) (org-agenda-tags-column 0) (org-tags-exclude-from-inheritance '("project")) (org-agenda-files '("~/Documents/Notes/" "~/Documents/Notes/org-roam/" "~/Documents/Notes/org-roam/daily/"))) Here's a truncated comparison of elp outputs calls9_7 elapsed9_7 average9_7 calls9_6_7 elapsed9_6_7 average9_6_7 diff_calls diff_elapsed function org-agenda-redo 1 34.677843 3.467784e+01 1 6.764364 6.764364e+00 0 27.913479 org-agenda-run-series 1 34.672858 3.467286e+01 1 6.763294 6.763294e+00 0 27.909564 org-element-cache-map 5904 31.591816 5.350917e-03 5904 5.696144 9.647940e-04 0 25.895672 org-tags-view 6 30.645603 5.107601e+00 6 5.897457 9.829095e-01 0 24.748146 org-scan-tags 2952 30.300860 1.026452e-02 2952 5.590151 1.893683e-03 0 24.710709 org-agenda-get-day-entries 1476 3.594734 2.435457e-03 1476 0.606745 4.110738e-04 0 2.987989 org-agenda-list 1 3.621574 3.621574e+00 1 0.665955 6.659550e-01 0 2.955619 org-element-lineage-map 38658 2.356579 6.095000e-05 0 0.000000 0.000000e+00 38658 2.356579 org-element--property 706448 1.981798 2.805000e-06 0 0.000000 0.000000e+00 706448 1.981798 org-agenda-get-scheduled 1476 1.947263 1.319284e-03 1476 0.241429 1.635697e-04 0 1.705834 org-entry-get-with-inheritance 37938 3.647018 9.613000e-05 37938 2.436293 6.421000e-05 0 1.210725 org-agenda-get-deadlines 1476 1.323156 8.964471e-04 1476 0.154018 1.043482e-04 0 1.169138 org-element-begin 570514 0.980263 1.718000e-06 0 0.000000 0.000000e+00 570514 0.980263 org-element-property-inherited 40114 0.881786 2.198000e-05 0 0.000000 0.000000e+00 40114 0.881786 org-element-type 2805984 0.888528 3.166000e-07 154150 0.054403 3.529000e-07 2651834 0.834125 org-element--cache-key 164988 0.789725 4.786000e-06 0 0.000000 0.000000e+00 164988 0.789725 org-element-parent 255728 0.771416 3.016000e-06 0 0.000000 0.000000e+00 255728 0.771416 org-element-at-point 238169 0.788185 3.309000e-06 8429 0.229212 2.719000e-05 229740 0.558973 org--property-local-values 116449 1.657522 1.423000e-05 115973 1.238066 1.067000e-05 476 0.419456 org-element--parse-to 9564 0.480723 5.026000e-05 9611 0.079269 8.247000e-06 -47 0.401454 org--get-local-tags 38172 0.242883 6.362000e-06 234 0.001800 7.692000e-06 37938 0.241083 org-element--cache-find 9540 0.272448 2.855000e-05 9587 0.053306 5.560000e-06 -47 0.219142 org-agenda-prepare 9 0.298073 3.311922e-02 9 0.114234 1.269267e-02 0 0.183839 org-agenda-prepare-buffers 1 0.288492 2.884920e-01 1 0.108683 1.086830e-01 0 0.179809 org-set-regexps-and-options 492 0.181551 3.690060e-04 492 0.019952 4.055000e-05 0 0.161599 org-element-contents-end 87720 0.130603 1.488000e-06 0 0.000000 0.000000e+00 87720 0.130603 org-agenda-entry-get-agenda-timestamp 37883 0.197997 5.226000e-06 37883 0.069473 1.833000e-06 0 0.128524 org-collect-keywords 492 0.126222 2.565487e-04 492 0.017828 3.623000e-05 0 0.108394 org--collect-keywords-1 492 0.124751 2.535589e-04 492 0.016960 3.447000e-05 0 0.107791 org-agenda-skip 971 0.129958 1.338393e-04 971 0.027204 2.801000e-05 0 0.102754