From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GDVjIvqrm2ENdgAAgWs5BA (envelope-from ) for ; Mon, 22 Nov 2021 15:40:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GDX+Hfqrm2EtPgAA1q6Kng (envelope-from ) for ; Mon, 22 Nov 2021 14:40:58 +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 3728FA800 for ; Mon, 22 Nov 2021 15:40:58 +0100 (CET) Received: from localhost ([::1]:52276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpAV6-0005n9-Ac for larch@yhetil.org; Mon, 22 Nov 2021 09:40:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57796) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpAUP-0005mu-Go for emacs-orgmode@gnu.org; Mon, 22 Nov 2021 09:40:13 -0500 Received: from [2a00:1450:4864:20::130] (port=45054 helo=mail-lf1-x130.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mpAUN-0003pZ-6G for emacs-orgmode@gnu.org; Mon, 22 Nov 2021 09:40:13 -0500 Received: by mail-lf1-x130.google.com with SMTP id y26so81590617lfa.11 for ; Mon, 22 Nov 2021 06:40:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lA6eEtueMqhy1cEqM2KT5pBzBDBQbrpbebeOnqb5EtM=; b=c2U9DxADif16d7rkhK6TOqBlRKOThL+ja2qYHP1Jm/bIJhvqqfUtUjQx/4nuLPYhSj EzIPIrKT/JOfM7fMNu3lPC8m8bLlChwy0i9VBO4BMr+hqJO9aMQtrj3Q6HjRoN0H9IL6 u49JgUnQzg5tmGNz3qFWuJQSUr/afpPyQnotBGPcB8IdR+cgNsXwP9mD646SO69fW7dm Q7Yvd2jhiWkp4Lu5l0larvd47T2GM5rrlOQpRBBZXsAQKaTle0ab3hfTgj1cxHEACsPI vhuNCTSpKBP6/t2RWnSrQRz656/zoHeOwZcdtlghMMvN4hc3ppMnt0DwvRHcehRFJUuq M2bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lA6eEtueMqhy1cEqM2KT5pBzBDBQbrpbebeOnqb5EtM=; b=bmeAtj0wtkiEg/KcttoT/Ppn3zN0BiQU7oBHWCGhfrz6L/xZHdR6lXOjgFCuAwulLA K3GIUaHiq4jCQZYWLfReM5SPzGfrL8or60DpOqgnqLssuKjNWO6wA19qqza5Tqqe+4Og I1AXYkb/lozx7RMmSt0tEDQnm+pesOmle0n3NUzy098XacjUvCazwiMFTCjc6/IQ5256 rn8bSdZIRZ3u0dPMu9ervuBTxtK6A0eDlD+HiMoHY9x7WKQKJk6cwpcMgF+IQhAyLsit H9HHExUsDfUPCEtX5S67oRc4IHzlqiOgFblVLHf93eW3nTJje01HR/G2nsDqMMfUnYGZ pxvg== X-Gm-Message-State: AOAM533DftuLmn08CAOQCVEDbxQqrPq+kSMCumb8EyIRC+zUJ+NuCZp/ rGvVO96Jh+4URemoq2yOZgQ1XJvx03geFfdpoeY= X-Google-Smtp-Source: ABdhPJzabuR8+b2ZCo0eiGuyyo/datT7imoEbFhsHciq/Zr4zDU2idBqd9N54M9WT9L8vyN84e70hgFGo33FV9hUXsc= X-Received: by 2002:a05:6512:203:: with SMTP id a3mr58331617lfo.409.1637592009473; Mon, 22 Nov 2021 06:40:09 -0800 (PST) MIME-Version: 1.0 References: <87ilwkpgmq.fsf@localhost> In-Reply-To: <87ilwkpgmq.fsf@localhost> From: Anders Johansson Date: Mon, 22 Nov 2021 15:39:58 +0100 Message-ID: Subject: Re: [BUG?] Cache: org-scan-tags behaves differently on inlinetasks with and without cache To: Ihor Radchenko Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::130 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=mejlaandersj@gmail.com; helo=mail-lf1-x130.google.com X-Spam_score_int: 1 X-Spam_score: 0.1 X-Spam_bar: / X-Spam_report: (0.1 / 5.0 requ) BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: org-mode-email Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637592058; 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=lA6eEtueMqhy1cEqM2KT5pBzBDBQbrpbebeOnqb5EtM=; b=E9C05T69QmRqvSPpLgqHEKB/cO1W0+vPe7DMqagiJw5am2N+KFMP+B3KLAeRtrnu9zdgbZ RIK1OAagavPfkvINiku3RSRjqSdfBX38TKpbIwnHZcd3Yckf7Ri/WxxugcbP2gc2en3euu j+h6nFYMsH0KyeGMuEWpxqFa1tXnptGGx/CgDdfSA8/HoZpcQZLD5P88huY/mIBq1NSNVm xOl9c8XoDi8mOmYnckqFlyTC6G2uOBjJF3arZ7YNzaywAnCaG3yKMMe+iX3QqkiFVP/FOK niji+QORBvwT78eNFk2XAkBaw20livert7kmHC/TDhYoJvXKAyWBbb9f6iZykA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637592058; a=rsa-sha256; cv=none; b=lDhCtJE09TPesHqIJVW+9sIeH7HBlzET7pfyMPyH1cSfjHd6nEf6sa9FeaZTh8iGda9Hcn 7b2KmxXdUVMXPM8nJq0Utw35x+FrR00uP6vFxVwPR2YJzl3kAg+07I20O960EyAM5doKz5 1Qwqn7cpwCyH8DXt+Ta3MXIydLFUh6OD4+9+yvaQtxKWY6O3RO4+UK/p49tyDXpL4I3hRF 4dzKZgCZ0iCW7dcmb0XgNuZRMyENivx1hooNpblSQMdHRFKhE8CIh9RG3wmLmDV8amfD/Z plQ87FG0RZoyYo7YmBC4nLXghhGCdX2dB7TQGhW7LcRHGi7Z8CVe5vSzYveQ3Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=c2U9DxAD; 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: -4.08 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=c2U9DxAD; 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: 3728FA800 X-Spam-Score: -4.08 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZlPAxTkd0saE > Thanks for reporting! You encountered a bug in org-get-tags. It ignored > inlinetasks in some cases. Fixed in 7a14d6035. Thank you! It works very well now, and indeed the counting and collection of tagged extracts (done with org-scan-tags) is much quicker now with cache enabled. I tested with some generated files, and it looks like with caching (assuming an updated cache) the time scales linearly with the number of headlines/inlinetasks to match versus some power function (n^1.6) with the old buffer-scanning. I had considered to implement some kind of cache in my code, but now I get this "for free"! I originally didn't use org-scan-tags but some custom and "simpler" code for scanning, but I am glad I refactored to use org-scan-tags, because now I get this speedup without a single code change in orgqda. Best, Anders