From: Anders Johansson <mejlaandersj@gmail.com>
To: Ihor Radchenko <yantar92@gmail.com>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: [BUG?] Cache: org-scan-tags behaves differently on inlinetasks with and without cache
Date: Mon, 22 Nov 2021 15:39:58 +0100 [thread overview]
Message-ID: <CAKJdtO-tN3m4R-Vto=BkjLhGKdNasGZ4HRrLYd838OOrh4PhWA@mail.gmail.com> (raw)
In-Reply-To: <87ilwkpgmq.fsf@localhost>
> 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
next prev parent reply other threads:[~2021-11-22 14:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-22 8:29 [BUG?] Cache: org-scan-tags behaves differently on inlinetasks with and without cache Anders Johansson
2021-11-22 11:35 ` Ihor Radchenko
2021-11-22 14:39 ` Anders Johansson [this message]
2021-11-22 15:02 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKJdtO-tN3m4R-Vto=BkjLhGKdNasGZ4HRrLYd838OOrh4PhWA@mail.gmail.com' \
--to=mejlaandersj@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).