From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +DW4I20wR2EmMAEAgWs5BA (envelope-from ) for ; Sun, 19 Sep 2021 14:43:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GBhlH20wR2FRfAAAB5/wlQ (envelope-from ) for ; Sun, 19 Sep 2021 12:43:25 +0000 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 13C0710901 for ; Sun, 19 Sep 2021 14:43:25 +0200 (CEST) Received: from localhost ([::1]:39514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRwAG-0001Ti-5Z for larch@yhetil.org; Sun, 19 Sep 2021 08:43:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRw91-0001TZ-3s for emacs-orgmode@gnu.org; Sun, 19 Sep 2021 08:42:07 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:55178) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRw8x-0004pj-4R for emacs-orgmode@gnu.org; Sun, 19 Sep 2021 08:42:06 -0400 Received: by mail-pj1-x1034.google.com with SMTP id me1so1432983pjb.4 for ; Sun, 19 Sep 2021 05:42:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:references:user-agent:in-reply-to :message-id:mime-version; bh=T0H/rCWkkDBA6SgwKFdoaveLZh7ZePwXAFqySeap+OI=; b=bZhLmTFrGzZUl1GSCkoA9QdFTH3pkmBzNt3m5ksLzWBqN2qAvBiYNc1Lnjyea6XDwA yKF/B2Wew0b+DkAGimJVuPUbw7GwRv7XvArr9fqQZpgZz4IuWI2jy1rHwepsrVjU++7z 4M7020q78C2iWt/RO2JtOfSuewQL9aSOaK2rQXbFgl1fb4xvo5ytVzutDV78+vsNLxQM Xbq0caHV/EdTGstfXNDRhI7lftFrRuQQa4M1aos79scIwP0BSRevlWTaTowjjSuZrxvF vqRIr8pO6hEsv69X+pzPpyKCa35YkT1SamEm6abVU+4TahDmTJUn6kMlAAWnY1f7Sz6V vN+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:references:user-agent :in-reply-to:message-id:mime-version; bh=T0H/rCWkkDBA6SgwKFdoaveLZh7ZePwXAFqySeap+OI=; b=LvnW5DyQ8mtWLyk7LMIrau+YRmnt7qj+kmRT3FzmDhGIVcayNOkr/IVbCHbB/K2CPC kJGYCbG2DXW6rPpE5KdWaylTRPozWSTBGpS8PreLLwbufV6HgKG4LVfJb9C6VWbtMdei lSGrrwsLMLO3rBhiz1IIHByxllY68uwcIssZS71/u0NcJVcPeahIIX36UBtez7EEM221 XYgVqM0mhXMJnFkxaj2NjWaLwdcSV/1Q8nFS6SPKkkYidW33Jk9r05P+ZGCru7r+1K5w +zKmktoRrI+On7lGkOu5r6D/VWPPKKdYUyfuatt2896x7WOR6l6rdDPGV1Sl+LqVe/yq UFug== X-Gm-Message-State: AOAM5310N4mbdsXfr0ddkWJJzM7wucMmCMS3i1WeZtoyyhXY3or25Qfk wH4SQb3Mb5c22iXHhTxdtuw= X-Google-Smtp-Source: ABdhPJz0Tod4PIDjkz8bW1s/17MiHOQzbX4gpbT0Qz9iMoFKg93bYpHdhi6uWeX5pPwHl+0TzyvpvA== X-Received: by 2002:a17:902:ec8e:b0:13c:8897:8c33 with SMTP id x14-20020a170902ec8e00b0013c88978c33mr18061326plg.87.1632055321540; Sun, 19 Sep 2021 05:42:01 -0700 (PDT) Received: from localhost (61-245-128-160.3df580.per.nbn.aussiebb.net. [61.245.128.160]) by smtp.gmail.com with ESMTPSA id u2sm15258082pjv.10.2021.09.19.05.42.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Sep 2021 05:42:01 -0700 (PDT) From: Timothy To: Ihor Radchenko Subject: Re: [feature proposal] Headline caching via org-element-cache = up to 2.5x performance boost Date: Sun, 19 Sep 2021 20:39:39 +0800 References: <87bl4p6n0m.fsf@localhost> <87a6k8esrl.fsf@gmail.com> <878rzs7r0c.fsf@localhost> User-agent: mu4e 1.6.5; emacs 28.0.50 In-reply-to: <878rzs7r0c.fsf@localhost> X-Woof-Patch: canceled Message-ID: <877dfcenze.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=tecosaur@gmail.com; helo=mail-pj1-x1034.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632055405; 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=T0H/rCWkkDBA6SgwKFdoaveLZh7ZePwXAFqySeap+OI=; b=Gg2u/fs7P+cgpSGisAqTH+YWbbv2gSKBYTbDgVahiiOf+2IWqA+umiRXal3dODa9Uo0zMK YaNzWew+Vzi8HCZQR5r2aSBjj/ZvF0xIhNDs8XzJ3zz3Teg57YRVM2tjVFVc8Zqyc0VF47 fdARswpW4TR6kV6aeRVKdzXDECat8xnpDbBfPD4ERP33GYyrLNQBu3yWNsvrviib/N/TVo smzBxxAaNzOnIoN464W37eBycxvcNN82GcgbZx1oRgjbWgn8Xv4lC+R00f5H3Hqxc1Czna 0qUZJ/v7xwl+ULl0hKOdkZa8iR7zkdTCJ5501k3l7KCs8YCfsPjMNmo4uPLakQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632055405; a=rsa-sha256; cv=none; b=dHQh+flvw61BeR04uLhM2fRa7SE1Ef6xX4sOzi6FUQIVu2pNEhLZxwHHdO/sl1hBO6ru2R HedDryfsO/vOyzFMQ+OF+n8Brzupz3DjffHE347izfmLto4a6Zb8vBzGfJcda41k6tK5OY o+e1T3y11cCvn8MROc67JsSeU3UZmo/k7eRtBD8LCinmPocwCUmztB2n+X+dSwePtepY67 2FqeBcHM2WoFPFeHrAkse+NY7A5Tclw6jWBTcBMMKlaeL1O5W9SNxYtZPrXc2uOfOThL2F og8ULgDpnsKuF4gg3Wd+JPVC2WRibxbmGC7K3Y6jtfxFlWkgcSMeEWkDwhADLA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bZhLmTFr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.09 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=bZhLmTFr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 13C0710901 X-Spam-Score: -2.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: Hhk9dMbsXRRM --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Ihor, Thanks for clearing up the nature of your patch-y feature request. >> p.s. I=E2=80=99m marking this as a patch on the tracker, since it is one= :P > > This is not a real patch. I just separated changes I made in > org-element.el. Other changes include cache support across Org code and > tests. In total it looks roughly like: > > 12 files changed, 2584 insertions(+), 1140 deletions(-) > > However, I did not directly base the patch on master, but rather on > (hopefully-to-be-merged-at-some-point org-fold branch :=E2=80=99/). I am = not too > interested in porting the patch onto master. At least not until I get > feedback on parser and API changes. Righteo, I=E2=80=99ll un-mark this as a patch then =F0=9F=99=82. >> As someone who tangles massive literate config this sounds like it could= make >> quite a noticeable improvement. To test this, do I need to do anything m= ore than >> just apply your patch? > > Applying the patch will not work. As I said, it is mostly for reference > to show the changes to parser and API. If you want to test it, you can > use . That repo includes the org-fold > branch and the new cache implementation. Ah, I=E2=80=99ve already got a few patches on Org that I=E2=80=99m preparin= g for sharing on the ML, so this may make it a bit harder for me. I=E2=80=99ll let you know how = I find it if I do give it a go though. All the best, Timothy --=-=-=--