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 iDQ+FEZALWMCEAEAbAwnHQ (envelope-from ) for ; Fri, 23 Sep 2022 07:12:38 +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 6IdyE0ZALWNWKgEAG6o9tA (envelope-from ) for ; Fri, 23 Sep 2022 07:12:38 +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 D521527934 for ; Fri, 23 Sep 2022 07:12:37 +0200 (CEST) Received: from localhost ([::1]:35964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obazM-00076Y-FZ for larch@yhetil.org; Fri, 23 Sep 2022 01:12:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obaxo-00076O-Hm for emacs-orgmode@gnu.org; Fri, 23 Sep 2022 01:11:00 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:40501) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obaxn-0004eH-15 for emacs-orgmode@gnu.org; Fri, 23 Sep 2022 01:11:00 -0400 Received: by mail-pf1-x431.google.com with SMTP id b75so11352577pfb.7 for ; Thu, 22 Sep 2022 22:10:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=2gIxZbId5DBp1/9m9nmd4V152bX1c2TzXYixxxzjZi8=; b=mW1FXJ4raWGurxM9KKB7aJbRmykqvTdzUM60/dMT2ufulyAsU7EZh+GtsBwkvcGxwf eh1xiFb84DDQCZIWWWYmkQW6ds3PZmoKFigoWvRPoqddoTf1LxnS+doB45NX1HOROQF3 1Hss7aKnFLQ+qmY7COMgGVh79egX5k1ha8NYKmTb1rALNnGZgdjM6VrtJ/3IktjXf3Qs tkv+XPAV5BKOFM/CMaJrAhCT4YcrlRJhOUS2TVFXF1kdN2K6flIqsFpUXGdepPXTfrwp S34TBNMfQ6GWwcB/lJ+E+z2I41gszfyO2LC1xcYunH9hmXvqW8YTV/8wS/lNBGEpeZVw IZFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=2gIxZbId5DBp1/9m9nmd4V152bX1c2TzXYixxxzjZi8=; b=HxG/yy82toaWdKz3xqfMxYGXUp+glDnSXLFQowKOR507UbTiKjilsrMwN7T8hBT3Ev MCdeI0Z1haJgZkJbnQ23TQB2JNdblXeO/90Xl7t0g6CqbGJaXUK/DWeZf7528TokIZvk vxFHjtRnGiQQO2ZP6Uoty22jiT9lFDeWSbfyflY1JSdUW9Hc8XB+qK/C73oKIimPhSdl B96+B/vvtUpwVgHq+fHzmkIZFFp3O5GjTcl3ddqyMijhydNkiF/tJJ8xQMnrLatUEZKL EjttHV3r4OnFwDte8MVYT/Nte/tm17C/bhbf/t0hzCsHYt6adCZlNrQ4oGOyiugn6nDN bzXA== X-Gm-Message-State: ACrzQf2sazjbc33zkn37clS1iJvOly3v0olNGlwV/S9ctbY/0NXMGdLA JlDqLfqaz69QAzbSxFHsiBA= X-Google-Smtp-Source: AMsMyM4Fzr3mxLIOzRDhnWUcaTdfOCF3HW9IlwZaWq7cGRZ5cL2U3lVNMyXw879s8HWzk+bxe12jOg== X-Received: by 2002:a65:57c2:0:b0:438:ac40:1460 with SMTP id q2-20020a6557c2000000b00438ac401460mr6220929pgr.216.1663909857048; Thu, 22 Sep 2022 22:10:57 -0700 (PDT) Received: from localhost ([1.83.154.224]) by smtp.gmail.com with ESMTPSA id y9-20020a17090a6c8900b001f319e9b9e5sm687794pjj.16.2022.09.22.22.10.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 22:10:56 -0700 (PDT) From: Ihor Radchenko To: =?utf-8?Q?andr=C3=A9s_ram=C3=ADrez?= 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: References: <87wna6ya45.fsf@localhost> <87v8poszqb.fsf@localhost> <87tu52z3j6.fsf@localhost> <8735cmyx0s.fsf@localhost> <87zgetxrjo.fsf@localhost> <87o7v8jd8r.fsf@localhost> <87bkr694et.fsf@localhost> <878rma930f.fsf@localhost> Date: Fri, 23 Sep 2022 13:11:48 +0800 Message-ID: <875yhe8yjv.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=yantar92@gmail.com; helo=mail-pf1-x431.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663909957; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=2gIxZbId5DBp1/9m9nmd4V152bX1c2TzXYixxxzjZi8=; b=fE/WoasIhobZguElsN0XxO1mxFqZ+eIJEf7cw8iUwyYnmodFH8yOOPxsA1wZuyoRwC+Tvc ks3zlKDSGJFPUHxAFJwCJxvOWmEs2Z961aI4a50gsOEKxMb871tDSamvLokasEkLT/A3GC SdwS/aiPVBqRTefR9BiiLzL/gfXBDPU/jn9y4Js3I/ZPwe4wWkaPe/WDrMHvgUS3R/lYUQ U9GrOwUfJywcn7OB0uIeKZrd4c7Yb+IxeTS7lzg+T7htPbQ2hSrgcDgwWPtArLB/IgpqMQ OXG8IA8FEaEGLHJCtA9oHocxRGwy5e4maLQXmrGNVIdxyc6PglFarb7/75I+OQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663909957; a=rsa-sha256; cv=none; b=kbeu/xIH/zmmvNkexmstNpRWvWgTi0d6BIkPtzEFAGSXBSpNG/5m9iovjsdbVasNdyD6Me BysM6qgvYwcgK4wkfFc4XGQMUkEo0sMjcbNcUIrmMezt9QEcSTFU32PCrUoE8ktsXx5jae 50rrUMhhsnU3URKEbzDE1R7+d5sDLsi0FkJjQ+Zvt5DT3RQlNIxuMQTXhMBVKlzKEdAlNF ittdz0LCJrgqsei4FW2Im4n8lM5CQ69AUvXQXdfgdQxj55GJ7bwUx51UE1xXq86gTGvdJk Z6Jll6Vu7S/h+fpnaLV0hOu9YujBJ9dFpKAKN2+2Leo/XPvAa7989IgNsivtlA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mW1FXJ4r; dmarc=pass (policy=none) header.from=gmail.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: -1.85 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mW1FXJ4r; dmarc=pass (policy=none) header.from=gmail.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: D521527934 X-Spam-Score: -1.85 X-Migadu-Scanner: scn1.migadu.com X-TUID: cnFSA/5AimBH andr=C3=A9s ram=C3=ADrez writes: > Ihor> Also, can you do 1. M-x trace-function org-diary-sexp-ent= ry 2. refresh the > Ihor> agenda 3. share the trace output 4. M-x untrace-all Now, I see what went wrong. Just pushed a patch that should reduce the time taken by `org-diary-sexp-entry' during rebuild. Can you update and try the profiling again? (If this last change works, I am out of ideas about easy ways to improve performance further. The only one is a significant change in org-element-at-point internals, but it will need to be tested carefully, an= d I do not plan to upstream it before the next Org release). --=20 Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92