From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 6Ac6EtH+KWNQwwAAbAwnHQ (envelope-from ) for ; Tue, 20 Sep 2022 19:56:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gNVmEdH+KWNxpwAAG6o9tA (envelope-from ) for ; Tue, 20 Sep 2022 19:56:33 +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 8288D290B6 for ; Tue, 20 Sep 2022 19:56:32 +0200 (CEST) Received: from localhost ([::1]:57272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oahTy-0006yH-Vv for larch@yhetil.org; Tue, 20 Sep 2022 13:56:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaddo-0003Pg-0T for emacs-orgmode@gnu.org; Tue, 20 Sep 2022 09:50:24 -0400 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:46920) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oaddl-0007g1-P0 for emacs-orgmode@gnu.org; Tue, 20 Sep 2022 09:50:23 -0400 Received: by mail-pl1-x631.google.com with SMTP id jm5so1449724plb.13 for ; Tue, 20 Sep 2022 06:50:21 -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=A+0XQDGLDGTw7ZMhuD0iMPWcsLT0IFCanowiX4U59WM=; b=St/cUis0OQKNS5YHyasw2LtsfV+rewSJ953fz2ZuJQrRjlKScTdS+xrLBHxRaMJ8tk 4UtHcMPubCNyo+ra7cGD8QVIxtPD5qBlbMyHXrVsx890/+c86DpLJj46FlRWQcATsJvt kDGywqx9g5n7u5SPElOlTFPBhGpN63dAOH6gBl0WvTzj0vsBKuKscHEIS6LTD50yvhKu WeJtIQzKr80yrWH1O0/V+5VIqcE0Qcsqbz99l3EqMWUHfkcJO0aReasnDswpX1jIIvtJ a0MGVqd3DEiH/4JMztRSP0xeqTXkSh7S5/cG497u0MC59GYg1Vhroec8l2IgSZ7lf+bx wwwA== 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=A+0XQDGLDGTw7ZMhuD0iMPWcsLT0IFCanowiX4U59WM=; b=zoK6ytDo/5vOSvAlTQDIsK8SBehvMnA/MNsEpornUpqu9w5JOPdG6MgmWFm0J7yRVC 4Ya9DBv3kd+8N/iYKRqFKNx7a9MwZQOavsAU5ET2qYWVLEgA+PwaiQ4yJ5tUxX53YgzE kyj3WwB1ueeVcMJukvdkJTEc23074VqoqhG3lG+jlBEn4fhROLB4h/qECLpA5+EXRzp7 f+GFzepi46FcmEM3ucHzbMD7uuzWjz7jjh2kPtBY1TOJ3Lg7Kz4l/JrgYHFXmdxcMqkk FsgQqTlmBSk/Ibbcu4dvbjsk3iQHxToCsYA5ybiNBiG1vm+n59BwC9MF/nTXQUYPXsw/ tYSg== X-Gm-Message-State: ACrzQf1+EfrikvCJfbDNADGmz4DeGOfiANCkQfiPF3CLGR0P2U/7Pc2s RlaohZhESI6nQO8vh9s3Nqs= X-Google-Smtp-Source: AMsMyM5Qe20zsaYpzgS4B1SbMk+1hXaSdlMuHHYjh75NruXukM4Loyxu2aHmHBRFuaDSDtlYQoHDCA== X-Received: by 2002:a17:90b:4f84:b0:202:dd39:c03d with SMTP id qe4-20020a17090b4f8400b00202dd39c03dmr4002840pjb.63.1663681820232; Tue, 20 Sep 2022 06:50:20 -0700 (PDT) Received: from localhost ([2409:8a70:2b5:ad00:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id h8-20020a628308000000b0053e22fc5b4fsm1106pfe.0.2022.09.20.06.50.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 06:50:19 -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> Date: Tue, 20 Sep 2022 21:51:15 +0800 Message-ID: <8735cmyx0s.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::631; envelope-from=yantar92@gmail.com; helo=mail-pl1-x631.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=1663696593; 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=A+0XQDGLDGTw7ZMhuD0iMPWcsLT0IFCanowiX4U59WM=; b=nAEBuAEybcATJgt/oSqs+d/RIuMRpASXKYABSQSMrl9rIpjgopRJ/PFATh3JTxEPM0Mq67 j507xYusXrwZJ3a2jtter3/y6QrTFuN7AV//SRrKeDx0H5MuxQ5z/GzMtGH6XlQiF1va0h t0zpxa9EBw+TfDzWEtC7OuN/+nNmR4ozxqzH8OpTDd9IDUiwrRs1i9P8in6ADr1IkT6ecR 5oHJyMhHQz/7LO9ManBTe/PBEJka4iO38+8ppjDmkiTnWPIvEGIvMAUo+qbarEDWAH3Y2r Vofco2BT2fadb3jQhq6VjYgFcsY8qXWcKXkF5KLt1AnXyO5Aa1DyhDbe/mUAfQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663696593; a=rsa-sha256; cv=none; b=OpIm79hivr2luXyLo/jB6cNOWSEupgwznZCp4BJXp+J7LBaFfDLgdrCtcf1OqCGHAi9nzE 2FiVjV05mOelPplUNU3Q3HkiZtWA1nyNM7tjpIsxFZVgH8lVsFRMyaAeBRnynvFiVg+Wlc OjFobNazDWbvy/eyOz37hFKY3oN2HoxBG5O0a2tDtxUk4cqqELDxMomadH0Kq4JwekAgW8 SBsgbCJ+yBstjESDr7qNsG/v102arJHO3VNUeS2lYcBoqv7n10lXdFlFUPkyDr0Z3zFksl iaO8wKOs8a/39rozfmU8sRPJCjgjEtfwMxOe3Qo3wl8lj1J56SlgUK0asWVm2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="St/cUis0"; 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.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="St/cUis0"; 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: 8288D290B6 X-Spam-Score: -3.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6U0LqB90fgnz andr=C3=A9s ram=C3=ADrez writes: > Ihor> Can you please try again with the newest Org? > > Done (f1a1974). There is NO improvement. It still takes 33s. > ... > JIC: I am attaching a new profiler report. This does not make sense. According to your profiler, you are still using an older version of org-in-src-block-p function. Can you please make sure that no obsolete .elc files are present in the Org distribution? (you can run make) > Just out of curiosity. which bug or improvement or new feature on agenda > caused this delay on showing the agenda buffer?. Previously, determining if diary sexp is located inside src block (and thus must not be considered a valid match) was done (incorrectly) relying on fontification. That bug has been fixed to ensure correctness at the cost of performance degradation. > Ihor> Also, note that a good fraction of loading time is taken by org= -modules (19%) and loading > Ihor> other libraries (10%). Subsequent agenda rebuilds should be fas= ter. > > Sure. But remember I am comparing with the same conditions against > emacs27 which takes 22s. It would be interesting to see the profiler results in emacs27. Also, the new code is capable of caching some data across Emacs sessions during normal usage. Though it will only make a few second difference in you specific situation (according to the profiler data). --=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