From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2AN/CXgiLWOJHwAAbAwnHQ (envelope-from ) for ; Fri, 23 Sep 2022 05:05:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sOB+CXgiLWPLbQAA9RJhRA (envelope-from ) for ; Fri, 23 Sep 2022 05:05:28 +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 C982328D47 for ; Fri, 23 Sep 2022 05:05:27 +0200 (CEST) Received: from localhost ([::1]:44400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obZ0I-0008T8-7t for larch@yhetil.org; Thu, 22 Sep 2022 23:05:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obYzK-0008Sr-19 for emacs-orgmode@gnu.org; Thu, 22 Sep 2022 23:04:26 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:39709) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obYzI-0001io-B2 for emacs-orgmode@gnu.org; Thu, 22 Sep 2022 23:04:25 -0400 Received: by mail-pl1-x630.google.com with SMTP id f23so10577724plr.6 for ; Thu, 22 Sep 2022 20:04:23 -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=IzbBVciNLxqJOi90L2XKEG56N2bb3WWwDgzj6PFxA4s=; b=iz66Lj/tAisUNhhqN92AVJh15sD77dc6DoaTTkQI1rl4ip41c6zaAeCSGrxpRaXgD0 BKWkSBAr47AecWi+ZAIz/TNL58Wr1mU01aEI2zwjDQhH0sYLmcqyHCLJ6HLmvrFIQxey 3Pj8IeaY3MDkWRYAGqPnmoiZ5NIAv+9qiIA9nn4CvaCzwlHlKYX1maKykj0QsprpM1oZ sEGscob6fRlPoQD/E2ltp/FnRlBs32qB6GOzTmSljhZSX3o0Pk5XSw3WlrcxH0r/O9V1 DmIAcpImtAiCRlQWRgXMBQ7+ZtyBG80aG5g75vbz1asGbKm+Jx09/KKPQE/P/JXi85+z uDXw== 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=IzbBVciNLxqJOi90L2XKEG56N2bb3WWwDgzj6PFxA4s=; b=hRFsFwXzE+YamSSXM6BvhiJWTSAx8ELBjYc3dRdBKTZqOD8vHYgCk57nvQ4lqIH2ff HUXY1dH402YTkV2pKHM7a0I11ai6Hh2aIqBOM0wojAfo4P6a3aKvXWWlZE2K6XXXM24q lxyHooAuhk8sDhkf8rNJXUGFobRXfRTFVsRFCfyXoD9uypAHSjZWTHzKEU534XAWq4h6 QQ28vxXnV9K+V+7/0gwISBLygXIq0hHJD8hjaHpN7DL2db/cOz2mf7Uv/jkW8DgfBkbn dmy2lAcjBpsNX1vUeEZ5EzRKjzGNVZzNvMGXf8J+WNQ3aVyZ2BefUEpnpngc/qSYzWX+ MyEg== X-Gm-Message-State: ACrzQf1VFvoWDFQe5IQlrzbUbiVQI8EFVfiwdFNDuZpWfDPtexJlgsEv jOhNAF12G2dboYBrrCn3nQg= X-Google-Smtp-Source: AMsMyM5YJpbuQRjo3O1If5IyrEJ5j7En8QTQ6iZtEOQWQz8x9XPi9Ul2LQZhVcGve9O/abajyIehKQ== X-Received: by 2002:a17:90b:3b90:b0:202:8a60:c852 with SMTP id pc16-20020a17090b3b9000b002028a60c852mr7245228pjb.169.1663902262757; Thu, 22 Sep 2022 20:04:22 -0700 (PDT) Received: from localhost ([1.83.154.224]) by smtp.gmail.com with ESMTPSA id mi7-20020a17090b4b4700b00200b12f2bf5sm8883501pjb.1.2022.09.22.20.04.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 20:04:22 -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: <87k068t1qf.fsf@localhost> <87h71bdgr3.fsf@localhost> <87wna6ya45.fsf@localhost> <87v8poszqb.fsf@localhost> <87tu52z3j6.fsf@localhost> <8735cmyx0s.fsf@localhost> <87zgetxrjo.fsf@localhost> <87o7v8jd8r.fsf@localhost> Date: Fri, 23 Sep 2022 11:05:14 +0800 Message-ID: <87bkr694et.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::630; envelope-from=yantar92@gmail.com; helo=mail-pl1-x630.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=1663902327; 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=IzbBVciNLxqJOi90L2XKEG56N2bb3WWwDgzj6PFxA4s=; b=Ji6Yhq7AJHy2Vb50ow+1WiA9i0rrtFMsSf+Wp8GlgjvmrUD9W5iHh8cUTVTT3LM6Tf0mrt 0rI13GGfT09e9ITgImrLpPO4NxA/TYItV8tl+TKvLV2igWHznlg2iCWy3DhDmwBJBKylcP Q8A4lUbsplbkylut9W7wjRjsrlgtHKDlpkNRlgtPh8ABbi2A3MO5fLl/uTBegpkVmU7V6z EyDW5cqH/ymnsloVhw3zm8nBn5Ah9UjOUISq42v9Zt6xH6NjEFT9GR3tjjUNZnI1z/3rWp Eb4NiYQkf0OV82lPQTsYmXRKrVgPQJVmC7KQZNyw9iRAfsRpAaV/UMQPknOuVw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663902327; a=rsa-sha256; cv=none; b=fxI6ngULtGcME7ect3+sDXpJ5fS8FNX+hP4jhfzh80dfKnBmNerEweRl5HYwi1nO+7lI/w rCnTPKyKGWkWMZNu70HMg69nw79hn4w3jSaV0qzpBZDmhQmjNullJMHHLU8Uh/LBq2oo7Q HFkWz+BDl/SXoEzLDWMOfIgXI9Fw2My9Ir5ObVSB7wvxMftMcEPnyd/xDzzqEHcdJYuqIP wAiuO1gXzZ42RnTWLCJYhyal+zTp5vC3zeH6SFFcuW7P93x8/DARqKqsKKkBpxWwDGlNLw LoAwfdH1MUWe4pNU7XjsDZLT0M4cTdtfb2qXzZ8mFY00Bo0BT0Q/gbW/6GxGlg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="iz66Lj/t"; 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: -3.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="iz66Lj/t"; 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: C982328D47 X-Spam-Score: -3.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: JGzL8aZyEozT andr=C3=A9s ram=C3=ADrez writes: > Ihor> cpu+mem report should generate two reports: one for cpu time an= d one for memory. I meant > Ihor> you to save both (there are two buffers). Sorry for not being c= lear. > > The two files on an archive Thanks! Something appears to be off: 767 8% - org-diary-sexp-entry 407 4% + eval I added caching of `org-diary-sexp-entry' results in https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3D4075662c2= 98da7fa7e2ba19e0b8b36c58852cc0f This caching should make `org-diary-sexp-entry' much faster when you rebuild the agenda. But it is not the case in the profiler - `eval' branch of the code should be executed when no cached result is found. Could you please confirm that you are using the latest development version of Org? --=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