emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: "Jason F. McBrayer" <jmcbray@carcosa.net>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: Re: Very slow agenda view
Date: Sat, 13 Sep 2008 21:22:09 +0200	[thread overview]
Message-ID: <CDB808FA-5467-4746-B909-3119E0C5D295@uva.nl> (raw)
In-Reply-To: <m14p5mus2p.fsf@bertrand.carcosa.net>


On Aug 15, 2008, at 7:05 PM, Jason F. McBrayer wrote:

> Rainer Stengele <rainer.stengele@yahoo.de> writes:
>
>> takes several seconds on my EmacsW32 3 GHz CPU. After changing the  
>> tag
>> inheritance setting to nil the view shows in about 1 second! Which is
>> good enough!
>
> I have the same behaviour here; I had thought that the slowness was
> mainly due to some of my agenda files being on a slow flash drive, but
> tag inheritance turns out to be a much bigger factor.  Which is kind  
> of
> unfortunate, as some of my searches depended on tag inheritance, but  
> I'm
> willing to re-tag some things to get my agenda showing faster.

One thing that might help is the following:

A tags/property search will suffer only a little from tag inheritance,  
because it systematically walks through all headlines with all tags  
anyway.

Another view like the daily/weekly agenda view or the TODO list will  
suffer from tag inheritance, because each matching entry will scan  
upward the hierarchy to find out what the inherited tags are, just so  
that the agenda view can display the tags *on demand*.

So you could turn on tag inheritance for tags matches and turn it off  
for other views, using the command-specific option settings, like so:

("A" agenda "prio A agenda"
         ((org-agenda-skip-function
           (lambda nil
             (org-agenda-skip-entry-if (quote notregexp) "\\=.*\\[#A\ 
\]")))
          (org-agenda-ndays 3)
          (org-deadline-warning-days -1)
          (org-use-tag-inheritance nil)
          (org-agenda-overriding-header "Today's Priority #A tasks: ")))

The disadvantage will be that the "T" key in the agenda will no longer  
show any inherited tags, and also that the new filtering-by-tag (the  
"/" key in the aganda) will ignore inherited tags.

HTH

- Carsten

  reply	other threads:[~2008-09-13 19:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-14  8:59 Very slow agenda view Thomas Stenhaug
2008-08-14 11:48 ` Bernt Hansen
2008-08-14 19:14   ` Thomas Stenhaug
2008-08-14 12:27 ` Michael Ekstrand
2008-08-14 13:51   ` Thomas Stenhaug
2008-08-14 15:43     ` Michael Ekstrand
2008-08-14 21:42 ` Rainer Stengele
2008-08-15 17:05   ` Jason F. McBrayer
2008-09-13 19:22     ` Carsten Dominik [this message]
2008-09-16 17:06       ` Jason F. McBrayer

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=CDB808FA-5467-4746-B909-3119E0C5D295@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=jmcbray@carcosa.net \
    /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).