[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Asynchronous org-agenda-redo
From: |
Adam Porter |
Subject: |
Re: Asynchronous org-agenda-redo |
Date: |
Fri, 13 Dec 2019 22:50:54 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Ihor Radchenko <address@hidden> writes:
>> org-ql doesn't use skip functions, just queries.
>
> Skip functions are essentially used-defined queries as soon as the
> queries are tested against every headline.
Skip functions aren't necessary with org-ql, because the query itself
can have arbitrary Lisp code. So, of course, you can call custom
functions in queries, even your own skip functions (with `not', of
course), but in most cases, they can be covered with built-in
predicates.
> I can rewrite my skip functions into queries, but I don't expect much
> improvement since org-ql seems to use org-entry-get, which is the main
> performance bottleneck for my agenda generation.
org-entry-get is only called for the (property) predicate. It's the
correct way to get Org properties, because it handles special
properties, inheritance, etc. However, when possible, queries are
optimized to a whole-buffer regexp search that finds possible matches.
So, for example, a query like '(property "owner" "yantar") would be
optimized to a whole-buffer regexp search that would be very fast. See
function org-ql--query-preamble.
- Asynchronous org-agenda-redo, Ihor Radchenko, 2019/12/12
- Re: Asynchronous org-agenda-redo, Adam Porter, 2019/12/12
- Re: Asynchronous org-agenda-redo, Ihor Radchenko, 2019/12/12
- Re: Asynchronous org-agenda-redo, Adam Porter, 2019/12/13
- Re: Asynchronous org-agenda-redo, Ihor Radchenko, 2019/12/13
- Re: Asynchronous org-agenda-redo, Ihor Radchenko, 2019/12/13
- Re: Asynchronous org-agenda-redo, Adam Porter, 2019/12/13
- Re: Asynchronous org-agenda-redo, Ihor Radchenko, 2019/12/22
- Re: Asynchronous org-agenda-redo, Adam Porter, 2019/12/23
- Re: Asynchronous org-agenda-redo,
Adam Porter <=
- Re: Asynchronous org-agenda-redo, Ihor Radchenko, 2019/12/16
- Re: Asynchronous org-agenda-redo, Adam Porter, 2019/12/16
- Re: Asynchronous org-agenda-redo, Diego Zamboni, 2019/12/12