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 8BSWD3nXK2O/vQAAbAwnHQ (envelope-from ) for ; Thu, 22 Sep 2022 05:33:13 +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 wKO+D3nXK2Ov2AAA9RJhRA (envelope-from ) for ; Thu, 22 Sep 2022 05:33:13 +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 1961B12ED2 for ; Thu, 22 Sep 2022 05:33:12 +0200 (CEST) Received: from localhost ([::1]:52520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obCxa-0003nQ-Ba for larch@yhetil.org; Wed, 21 Sep 2022 23:33:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obCvj-0003kr-Qo for emacs-orgmode@gnu.org; Wed, 21 Sep 2022 23:31:16 -0400 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:33550) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obCvi-0002JM-5x for emacs-orgmode@gnu.org; Wed, 21 Sep 2022 23:31:15 -0400 Received: by mail-pg1-x534.google.com with SMTP id f193so7935331pgc.0 for ; Wed, 21 Sep 2022 20:31:13 -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=DO9SaPGN5C1df3xxeLgIKEpv/KgN7xov7e1KsTmo+CY=; b=LS66E7RVcOkPbspdXtOWP+0pIVyqL2Z96UCcL2WAwnVTLT5Mci/4b80xzeiGdrs6hz wmRwthFJoLpbAxsTUjcM0VykDZeRlXv96jT/lk+OHUna07qDy/ng1awk93gYqcFjs8uK OKhUD73Ajg5zxCmT9NuUO/dZZcg0el3imfM9wyLCHRecZI6mu3Gdf6forCr2oRbEZ/RK XeTHXVxUXMhFMb/yOBfNHwyzeZUVubC6IIG4ZjUEfIzuCsUzVZBDKDxCGtb14dwSmHly UEj+NMUBBNgbbacurrNiGMYv/j8qdxlZWeG3Rjm2D+umaCFHmWGYYjivwRhBDA062Ai/ gOQg== 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=DO9SaPGN5C1df3xxeLgIKEpv/KgN7xov7e1KsTmo+CY=; b=I/wjVwiAGgzL1tKKsiZro4aiFQBGrZLAm4fus9DTA28q3wDqQrffj1Pq83Reva8UPo zGGNPSEmwisPQe5sRtw2uZl7W/h4fLNeqqDcBBmaqOV43WiuGgohdPlPPbhlPw+V5W+D T5twBHTy3yRpZquwDDlUY5EmW0Kc+FJhFPhpAODxSzvuoRkz2NDiIrvsi4+mecK6q4b/ Fzwg072sTH0wpmvZRDuLdM5+EggKbAutRbxIvwSkToUmGYAmBrABjVOP2SO9T0FhfbzS pJLqSspYvs2tUYUF/eHj4MJMHIiSl+PGLmXQ4qOzpHGU1+Vcbrt1Dw9lRGqsc61LwpIS 9k6A== X-Gm-Message-State: ACrzQf0+XN6PsuTYa60Dph2wxANfyt2RhEdwyG70okx4epUCCeChwLlo XuJgzYCr6syJ37wIiTsmQ6Q= X-Google-Smtp-Source: AMsMyM6jNGZvzzo6OIgqiENk6wSIME0OrNJoFWp3bmubpvvAAaqj1hFGCXFZqGiluAx6wk1rOI2Ndw== X-Received: by 2002:a05:6a00:234b:b0:545:fec9:abca with SMTP id j11-20020a056a00234b00b00545fec9abcamr1468487pfj.14.1663817472569; Wed, 21 Sep 2022 20:31:12 -0700 (PDT) Received: from localhost ([1.83.154.224]) by smtp.gmail.com with ESMTPSA id om12-20020a17090b3a8c00b0020263b7177csm4736345pjb.3.2022.09.21.20.31.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 20:31:11 -0700 (PDT) From: Ihor Radchenko To: =?utf-8?Q?andr=C3=A9s_ram=C3=ADrez?= 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: <87wnaeo18w.fsf@localhost> <8735cwujed.fsf@localhost> <87k068t1qf.fsf@localhost> <87h71bdgr3.fsf@localhost> <87wna6ya45.fsf@localhost> <87v8poszqb.fsf@localhost> <87tu52z3j6.fsf@localhost> <8735cmyx0s.fsf@localhost> <87zgetxrjo.fsf@localhost> Date: Thu, 22 Sep 2022 11:32:04 +0800 Message-ID: <87o7v8jd8r.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::534; envelope-from=yantar92@gmail.com; helo=mail-pg1-x534.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=1663817592; 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=DO9SaPGN5C1df3xxeLgIKEpv/KgN7xov7e1KsTmo+CY=; b=HVlTRWs6Xo88pIFo8r4AY5F9aR+dSZ1rC2u8HKCT8zDRM4EYFj64iuX3C/3Kb4TusX9Hn7 acIRd/l2prI/jvYAKz2pcELRLhMFwoAdAkrxTBD976/DoCpIfAroFOsV+lWCrfRptnkiRW z4ulKIpriNjFrsIswwkV9knpL4cRFx9CnGt5kFSktVSwkJGjrPAWSezQ8uro9AnqALS2IV 99UD7geUvjtfhy8gEA5HV38L6utBNuwmxeJ37w8empgdMfjAJCZ4XK55VUDDGnAS6YMdkQ TD4khlk9GLAN2p88qJC4+l0gwpFsQ57RlmDT/OD6vY4kJtdXjEEACbcH/cwFSQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663817592; a=rsa-sha256; cv=none; b=WYt8marPxI8ziXDF6MpaIZV8iGRWtk7249hWm+PmH9hxq91a02Bn+G48plIaf5TvHS0bcb uJTGfkdbAs0UcIKfWuC5IXOvDEVNhsF3ZV/8cI42Uy2/8/UO1WFGipK9ML9xWlzkLbyq6X NVv5p7lgHDJek5QD8Ih068QrbnbjcXmG2CNPY09RrOvFmyGaY8OughrXeTmpcJunoteyzS LMcLlSka7qUggodYzeP4ROnI7Z0zcOkSns+LXkYxDaV24RmUCj8Lfmg+F67rs/IPXvBEDF PyZvKjGywZ5/zRwHyBb+nOcQe4EBLG4LohvCxkeZrsjR9mIXQaOfFyzp86QkLg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LS66E7RV; 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: -8.34 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LS66E7RV; 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: 1961B12ED2 X-Spam-Score: -8.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: wqzG8vfGiuKO andr=C3=A9s ram=C3=ADrez writes: > Ihor> I also pushed a couple of new small optimizations, according to= your profiler report. Can > Ihor> you try again with the latest main? > > Done. The time is now 32s. > The produced profiler report. Thanks! I pushed some more optimizations, though I expect the improvement to be no more than a few %. I can still try to improve things a little, but then I need a more zoomed-in report for agenda rebuild time without combining it with loading elisp libraries. Can you: 1. Load your agenda 2. Start 'cpu+mem profiler 3. Rebuild the agenda 4. Share the obtained 'cpu _and_ 'mem reports > Ihor> BTW, is your Emacs 28 using native-comp? > > NO. But on this lower-end machine there is no too much difference. native-comp is improving things proportionally. It should actually have higher impact on lower-end machine. I recommend native-comp unless you update frequently (and hence need to re-compile using native-comp often). --=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