From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 KED2LWV5LmOZLAEAbAwnHQ (envelope-from ) for ; Sat, 24 Sep 2022 05:28:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gBXYLWV5LmOUpQAAauVa8A (envelope-from ) for ; Sat, 24 Sep 2022 05:28:37 +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 7490525F3B for ; Sat, 24 Sep 2022 05:28:37 +0200 (CEST) Received: from localhost ([::1]:50628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obvqG-0003zX-5O for larch@yhetil.org; Fri, 23 Sep 2022 23:28:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obvpp-0003zO-QE for emacs-orgmode@gnu.org; Fri, 23 Sep 2022 23:28:09 -0400 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:37853) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obvpn-0001Wk-VN for emacs-orgmode@gnu.org; Fri, 23 Sep 2022 23:28:09 -0400 Received: by mail-pf1-x42f.google.com with SMTP id a80so1801072pfa.4 for ; Fri, 23 Sep 2022 20:28:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=z3PGir5krCI12OQ7/qqcuGztf7IGdgJCvzE8VBzS2WQ=; b=mjb4InkgBgyQIIy+pt+Sv9IL16RrCbks2YsB8ZiDl61kr4+SjWNelcBSfMkkOv8n06 7L6l1fS705jOZj5331RnlSyEj9/kSU0brEkrP7J2cXa8ZriyNO3ncUHsHyacqf2LDCJ1 vG8p9YzJlR93MniUDglGH71A2hkzk2JY67rm13+7GK6haTI8k+uNXdUHqzeA6ZWINcb0 MjCnDbCnDfiZ4dehs2SgEnRTq4ig/LcjlhqveMeBstdTX+kVLBZw2Bmm/abSHpZstkRW 6PthHUDhQvr56AwkVZfkaV2wnCMv7q7PmW5q3/N1FOugTH5UJT5HIsgTkNJZV+3LWgRt dMVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=z3PGir5krCI12OQ7/qqcuGztf7IGdgJCvzE8VBzS2WQ=; b=csZvJj9GWD9SRoG5SGAtDdo533uaxB5CjtIH0qLcPUj0BHKv1jHSp9UpZA49s7Fo6f xRixa5iKhgPKgz5KiQowpkf1axh5SYZ7fR6XfC0C7bxEQth54p9YJD+OsfJJmbpTLDl2 kANqRgF6IphlK1tZ5KAQy62MlItl/mmKzo0XH1jsS2f814hoEaTux8SzouY2+TcfNojt QJmFaBw0sAknlo6z+D+9kQ48v/sgaGecXYdfM9g0cgXWE9rjluy/wgJN0AIejCIDiRP2 LyjqDNBbLheuL6svtUVoM8ZxgAkCVZsszGrHHii5w+qjSwjfW3TNQ8UC5o8iGGttuls7 wB6g== X-Gm-Message-State: ACrzQf0I0lNmiyKpnQ1/vPVkVzmrbyCUyydT7n6qzNHlO37aof1D0Wj/ akF1Bl7Zyjs6RLfXo+DFTAU7xL3MDms= X-Google-Smtp-Source: AMsMyM5adx+UDc1hf0R0UB0SZpPvgtUoqJiV2ljdBgQ0ZmBpaCmOac4ZUtln4UkL0JfJ66Ct0yS46g== X-Received: by 2002:a63:8649:0:b0:43a:d230:d3b5 with SMTP id x70-20020a638649000000b0043ad230d3b5mr10377220pgd.493.1663990086598; Fri, 23 Sep 2022 20:28:06 -0700 (PDT) Received: from localhost ([2409:8970:a80:3a4:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id u13-20020a170902714d00b00178aaf6247bsm6783309plm.21.2022.09.23.20.28.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Sep 2022 20:28:05 -0700 (PDT) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org 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: <87v8poszqb.fsf@localhost> <87tu52z3j6.fsf@localhost> <8735cmyx0s.fsf@localhost> <87zgetxrjo.fsf@localhost> <87o7v8jd8r.fsf@localhost> <87bkr694et.fsf@localhost> Date: Sat, 24 Sep 2022 11:28:58 +0800 Message-ID: <87czbl5u2t.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=yantar92@gmail.com; helo=mail-pf1-x42f.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=1663990117; 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=z3PGir5krCI12OQ7/qqcuGztf7IGdgJCvzE8VBzS2WQ=; b=Iyp/UtccdZAnvA+jQZcfnrrzHjTzUhHMes1+y0aqCcZkKQ0auMJidykJ8E5nW0lefojkmn 7tTmvY8otnWbbcgRCGx+Np1dzp1+p2jUNsJAaFBUuU8aisW/c9Y7RRosZEK2obo94lUsX3 MjmcIF/j/wJYDsgmrKywYJ4hgRxmUbKb3KZewJivKXVofDkfLTR9g3nR2jEi2wi+9wKieX Uy9yi9nWZHQcNyDjmFd0eEIvQ8wtJYqlCUQWctjOrzr3sn1nM1fEDnIOs36ezHjFMeN9hH b5Yr9wU4oqImoF3B3Ey9gJCGlJ8HqI3aBkH5+52yrKwYXJn2xmnbUEQF2bNptw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663990117; a=rsa-sha256; cv=none; b=QvYm0/aW9Z5o6YudCLtGK/XIgqjqkdYXAlBoIqNRvYajzdGQJX9gHUnejNZGziNwOWC4la 7lEOFn1bBPawemjBPuVSIWisDWh6f6kUZXGwEEbbp8qSIpORryv2TDUgs47euSzl8JkkK+ foaPt/6S+nSGaGcFj+UFWCEWG8+LWq/J/ghce33KtK3DgAOzhfcqfkJFh4kbZjFNzv7Bzs RSmD7NBcpzt8phrsHayn0EYAz1ZcJHE00Dp49vU/qAg4un1osHcHXIx/xwSpqGjhGyXuIi 5PuFLaF/mwijWLGPDSbAVKnIjwF/gVsU1YPB/tjYEqWGncUCZI45EINwV9/CzA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mjb4Inkg; 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=mjb4Inkg; 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: 7490525F3B X-Spam-Score: -1.85 X-Migadu-Scanner: scn1.migadu.com X-TUID: x149nJGIteos Max Nikulin writes: > On 23/09/2022 10:05, Ihor Radchenko wrote: >> >> I added caching of `org-diary-sexp-entry' results in >> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=4075662c298da7fa7e2ba19e0b8b36c58852cc0f > > Sorry for the noise. I am unsure concerning exact effect of the commit, > I hope, if agenda is rebuilt after several days since first call, > actual timestamps are used. Maybe my note makes no sense since I am > completely ignorant concerning generation of agenda. The cache keys are the function arguments. And agenda date is one of those arguments: "Process a SEXP diary ENTRY for date D." The only real concern I can think about is cache size that may grow over a very long Emacs sessions. But I am unsure if this is something we really need to worry about in practice. -- 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