From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yB0ENKDeLWPKUQAAbAwnHQ (envelope-from ) for ; Fri, 23 Sep 2022 18:28:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IHkpM6DeLWNu4QAAG6o9tA (envelope-from ) for ; Fri, 23 Sep 2022 18:28:16 +0200 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 5841CD09B for ; Fri, 23 Sep 2022 18:28:16 +0200 (CEST) Received: from localhost ([::1]:42502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oblXC-0001qi-Se for larch@yhetil.org; Fri, 23 Sep 2022 12:28:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oblJp-0006N9-LE for emacs-orgmode@gnu.org; Fri, 23 Sep 2022 12:14:26 -0400 Received: from mail-bn8nam11olkn2010.outbound.protection.outlook.com ([40.92.20.10]:35777 helo=NAM11-BN8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oblJi-0004aY-Ho for emacs-orgmode@gnu.org; Fri, 23 Sep 2022 12:14:25 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c5oVBY3QSA5BdPOvacxxC8oj714htVBeO5V+/46Ulw/ywn4aL5PuJARllTqnCtVYEMjxFbk/R2/S8balnJbL811dKfZKz82OULX7UZQ/uNm0WeTPATku7W3IWYvwCFamzuQ75mo5hVoTHogOL5iI+N0uuNdQz2GEK5uhhJciq2m7+W/MrvY4BG9AudkN40sCpV94ZbG5/fdmDVzVGBZSVU5Lp7CeAWgKsu1OTheqJIQ45sO+ia0TnDHSg6guu+Tw0r3YveTz6BjQ7vyv0ooJWdJROAGVxlApZRkT/v9qXhwk6u5W8B00RJJgzXdo2bGriRVZyuKmNLmnZv+KsbD5ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7G37hyJ8ufEZX1SfBdjlk/hr5lqkm9fed0rcgFZC5wc=; b=VRK0FkPu9/VUrJWXGG02UZ/Pg0dMYh9Omfv75yO5twuZMrwZgwMCgW+7ESC2n2HM/CYcxJycr4shyJF9OJcYqpZG5goUnMzZBa/wt0K12Dd7VEPtUINzIPPWf5YOa/QIPBFX+1gxbL/lJpAPusgkcZqr2jnK/RduZAjl70pZjaC6W6+9QUkcPOb07OU3hph1ToUwqc1OxZa19+2A8cSOJBytd4C312YZ0EyioNzFWvj2wa6L8wdMfTS8P0MN0ohzdlRlMWwmHKQ3u7dCNOyLFxPpJXAnGy8MseZHPOBR2CHhDLGjn4BGBHr13yeXnzJ04zfeAoui4TRWX/q68euvqg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7G37hyJ8ufEZX1SfBdjlk/hr5lqkm9fed0rcgFZC5wc=; b=QCcq8UHd5frvGeQU0BBdKh2vy8+qTy4k/8NapDa2QgLKfqO/ZB21CGAx3QvsxolxyMKfR2jtTbDZ+Oh8t8AJ4FhsF2V9ndU9bM5zrf9JpqkqVl+FK6cc59urJ2id/t3HbYq8BCUDg7asJCFYWR0wRu6W4XggGXCTv/0EzSKCknyvivj456dDFYE8ld0wUmKwxByYaklKeGBE0f2lxLR3aRSrcIkPqsZb7L3vPqI96unlRtLB9uI1pXCn98yf9gU0ztQDot4yzbKsLnhnauPhXxFM/yVH7ynw3AXoOkboSkDb+W0wLQ6h2U/r/41rS96pm7hxPCSvnrXXyqsh1ERWNA== Received: from SJ1PR12MB6363.namprd12.prod.outlook.com (2603:10b6:a03:453::9) by BL0PR12MB5505.namprd12.prod.outlook.com (2603:10b6:208:1ce::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.20; Fri, 23 Sep 2022 16:14:15 +0000 Received: from SJ1PR12MB6363.namprd12.prod.outlook.com ([fe80::cc19:4adb:f5ec:8875]) by SJ1PR12MB6363.namprd12.prod.outlook.com ([fe80::cc19:4adb:f5ec:8875%6]) with mapi id 15.20.5654.020; Fri, 23 Sep 2022 16:14:15 +0000 From: =?utf-8?Q?andr=C3=A9s_ram=C3=ADrez?= To: Ihor Radchenko Cc: emacs-orgmode Subject: Re: [BUG] org-agenda-list takes 4m compared to 27 that took 15 seconds [9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/share/emacs/28.1/lisp/org/)] In-Reply-To: <871qs23xxp.fsf@localhost> Organization: bien.comun.org References: <87v8poszqb.fsf@localhost> <87tu52z3j6.fsf@localhost> <8735cmyx0s.fsf@localhost> <87zgetxrjo.fsf@localhost> <87o7v8jd8r.fsf@localhost> <87bkr694et.fsf@localhost> <878rma930f.fsf@localhost> <875yhe8yjv.fsf@localhost> <871qs23xxp.fsf@localhost> X-Attribution: INKA Date: Fri, 23 Sep 2022 16:14:08 +0000 Message-ID: Content-Type: text/plain X-TMN: [tW7rPD/YbJjuy6hEpntkUJThs53ji0G7] X-ClientProxiedBy: SC1P15201CA0031.LAMP152.PROD.OUTLOOK.COM (2603:10d6:4:54::17) To SJ1PR12MB6363.namprd12.prod.outlook.com (2603:10b6:a03:453::9) X-Microsoft-Original-Message-ID: <868rmaf4q7.fsf@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PR12MB6363:EE_|BL0PR12MB5505:EE_ X-MS-Office365-Filtering-Correlation-Id: 469b5290-3ad4-46a2-8edc-08da9d7ea8a8 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9c7poM3+CaJdoEUEhm0GyHmg3VNoyNgRcE8BzunAPAdo1yO1g684501URf6S73ieNKNtpwo1GkkfWfo+irnmNXSzQIJ394kNykVAJXW7zpQ8o4zm6cXXz99xOzzyUqHQAyukfu79SL/bKpL18whAvRIb13DpUBXg3+Y6TDMe8LWKzjwL0GQQbDXjSiY3PBXiLhWDK2Hh4PkNRLxEWv7d+xjtjpt3a/zlmgNJufbFNMot2CkOHd72C61FSvGizH6BcpdYWKXas2PBbr6kTbNT4g9i9kbgUF357xhtqaPr+FX8ZFX/g6X4wDKzIuGBJI011G3X9AZ9xuK0W3pAWiUcd9TfxkxSJL9wQszBHpzpOuZMoEY7foEVoG3SJSYCuDsHaGA0qYw59eEiLeXaznEatx31WYSoB9tAmYTjxpzEL3LLzV7MdyK+lKIt6unnGoMOTdmun79RAEtzv67Ibc6pCs2Vv1DWVnh+MbY1/dsWviONxXmmTLJ9LGwkDbLXbotaLbtrdooIx/G5/TAyvbe8/7RQk7JyHqv7TP4SG5yLSfDewM2ylyddYm1P5Lf/x4mSeOQCWlwqNSHioKRtw520Mc8exSSBTf2mXeIjgFCVLmzlseU7nTm8JipWEtdjxNeY5UkgVySq+7IosIUBsnBDSaYwtqGImMRXAe8v4/deQBxNxzCyGx+OY2SDbzRKH1EL X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?fQrf5FTnZNUNEqjQcQ90ZgGFITR5jHuB9VzYA4XTjpFVHxF/MnO28izu88zG?= =?us-ascii?Q?ypxJBFThx9Y1mOOjF/Or/5dDg1R/PKgaIYTaH3c3sC/siBcJ9gU2NOj2AlQI?= =?us-ascii?Q?RwV3r2XZueQ19QjgPhU7onNP5JghaazH8SnYgF+/oU70Jdp1Mppwq9arA9K7?= =?us-ascii?Q?Jz5b7UpN1/Jvdkp64zXH7+0ZeWeIFN1ftaOv8rFAA63Kibr6kZ+7KmSRBxKv?= =?us-ascii?Q?QvrQmOXEVGxqU+pQ1q2bqgWLGTsFS86teCEJW2+rHx8c7hgzPw3PF89DaUHV?= =?us-ascii?Q?Steu5MuA37LdpFtPqEX94St2RTDKbARsD3zVw5mslInwXRfr4Bc/Z5PBiwMn?= =?us-ascii?Q?Bt+g0WY+UQxhqxcs09JTZBXgaoiw+ftmo7Ywgk2kkW/zjhTbZQoivuWAHFcn?= =?us-ascii?Q?xdzZ5pNdPPlapjv5dOBcdz9cpMZ8VOf+54Fj9InUmXbe/4iP45fmDfRljXJr?= =?us-ascii?Q?1nZE29zoiUWVr4tRwHqJJQyCAX6mzcG9z95ozD4P6vMkqTelodQR7CxBsfeV?= =?us-ascii?Q?Y6CUeUUFYA2a2g7enDB7Q84EWvkuzy441jZVT9ZSJvPA6pnCq+KAfZcQQwWO?= =?us-ascii?Q?a21UlqsxyT3Kx8FHxizlqfdGaSmHJRJwBzb8TKUo+dWsHMAJnwm6ARuhN6hS?= =?us-ascii?Q?j1dp0It8VD2WFVnz19KGuTZcAFUynSB2nB63g0Jj012d9QQAVmt6/9nbbTHK?= =?us-ascii?Q?WkUIw23JnxAMe8oyleiTQIfyUIW/2cysx5wk7LRI8LYP5DHb6XN/eydICfyp?= =?us-ascii?Q?XBuRkC26aveGYRt8u2JGHYeD/4a0RYjeMi47ML4QAWdoMyXy40TQ1AA25Smc?= =?us-ascii?Q?WUow74D1XAa9rq923BX2aml3Rocgig5q2fJY5cAjoU8U1l/wqN0aWrJ25B4v?= =?us-ascii?Q?xpjGJ2u2+ugm11CvcnqOj9L6WiI8WOZ/oe6gJx/PnjaNlz0KAi3X0aJB8DLt?= =?us-ascii?Q?11+EKhuc4Q5byIMwlMnZ9LWlHY7OeVt/CEGRFBVkmGUipbxA7AijAaijYg3K?= =?us-ascii?Q?EifBC6jDBm2me8dVOfsWO15EVx9TNbrsYdGjpUHkPnAOd6rENNgU860Vi9Yn?= =?us-ascii?Q?J4TZUSvDT1bMJ81GF4Dc2IbAA01R7Eeq8cuUqudQDQsZBJq/xofVtXbJcKiX?= =?us-ascii?Q?1uHGqRO19U8h89dOJzCdCOkYl6iRNionKrxF5dHeU6z0UHvgxNVRNSE70oxH?= =?us-ascii?Q?VSOnyuWc/t7UsmQCK5foib5HiBNXOjdBjX7uRhHoq2sWN+OOmY4PM2rUX4/d?= =?us-ascii?Q?EwYpfg+7LcY45K1k6YrLmHZNJp4vFg74SW13KI+Czg=3D=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-71ea3.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 469b5290-3ad4-46a2-8edc-08da9d7ea8a8 X-MS-Exchange-CrossTenant-AuthSource: SJ1PR12MB6363.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Sep 2022 16:14:14.9748 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB5505 Received-SPF: pass client-ip=40.92.20.10; envelope-from=rrandresf@hotmail.com; helo=NAM11-BN8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663950496; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7G37hyJ8ufEZX1SfBdjlk/hr5lqkm9fed0rcgFZC5wc=; b=FCgnZYZTgOkMXfurYtb5fWSL0uxXJqbaVT28rNNUCv2oiJRHMkIX+YB6UGFeLiJXJnesQN u873W3Q/p0kTY4zXWcp9egm1oeltEeTAyk+vyChpB/9G+UPv69sq0WlJYQ/L+jiqKB0YPH 1VKw464Bc8wvgcIk32xfdhfZm30n/wxtAMIFv6z6xwBPhdwz7tqj/pEPuQ4KY0LE6DEwNM zzEhiE9rgbO8IDGqOV3DYceJwti28UGAYToSfH3zMEKklco1jbLODybi0qg3ABuIZdMXlc nHb3vwyVI0+HMge5IoOSd4MQDKGCPj4Rdh9s/i5bDhvxFP5M2y1/EuvVpFsN2Q== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1663950496; a=rsa-sha256; cv=pass; b=k3pHWuwilzgIKxCwmiTy9Cwi1jHQfpCHn8cgMbhT57ezQpI2IrNa/rU+uJfHMK1fFHytit 4UxwI5mVGWyCY9WaYeoiSHcyD+zGXv8vEwG/oc5FOkvrDhbclbOlp0PtM5WYiNUqr0g77u G6FAEL4JrxwCy83nCYsG/rXNst2FmpMCC4nNqZYhiMOTVPftvTlrRQq5eWBkPPKSU2rssq Pi+1Kj2g5YkwbIKV6lc6aoIfXCnEVKcZ/dvA4ufxmI6jwTb9gFbgSOygJB+ffFjazt0kxl g55MR+k1aq25kl3eh4d7y35IiRLRWurazFf0n9jqdsKYfqL1qBzdO2j9eTFNbw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=QCcq8UHd; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; 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" X-Migadu-Spam-Score: -4.85 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=QCcq8UHd; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; 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" X-Migadu-Queue-Id: 5841CD09B X-Spam-Score: -4.85 X-Migadu-Scanner: scn1.migadu.com X-TUID: +Pb+tUMcVn32 Hi. Ihor. >>>>> "Ihor" == Ihor Radchenko writes: [...] Ihor> You appear to have a large number of diary-style timestamps. This is not common. Normal Ihor> timestamps are generally much faster because we can construct a matching regexp based on Ihor> current agenda date instead of checking every single sexp. I started using the org-agenda several years ago. When I add a new entry which is probably weekly. I just kill the previous line and yank and update the new one on my agenda files. This is a tipical example of one of my entries. --8<---------------cut here---------------start------------->8--- %%(diary-block 8 1 2022 8 1 2022) 9:00-11:00 retiro.espiritual {collaborator.family} --8<---------------cut here---------------end--------------->8--- Pardon my ignorance. How could You translate it to a normal timestamp?. Ihor> Having said that, I now have an idea how to avoid the overheads in such scenarios. Just Ihor> pushed the change upstream. Can you check? It should bypass most of the slow checks in Ihor> your use case. Neat. Now it took 25s. It is really very near to emacs-27 performance. Congrats. [...] Ihor> We have a whole dedicated section in the manual: "A.8 Speeding Up Your Agendas". Agenda Ihor> performance is a well-known problem since years back. The coming release (the current Ihor> main branch) will have major improvements to performance in this area, although I have Ihor> mostly optimized it for timestamp-based agendas and todo agendas before your report. Thanks for the work. Best Regards