From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Very slow agenda view Date: Sat, 13 Sep 2008 21:22:09 +0200 Message-ID: References: <48A4A6BB.3080208@yahoo.de> Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KebHP-0005B9-KT for emacs-orgmode@gnu.org; Sat, 13 Sep 2008 15:59:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KebHO-00059H-0X for emacs-orgmode@gnu.org; Sat, 13 Sep 2008 15:59:39 -0400 Received: from [199.232.76.173] (port=39448 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KebHN-00058x-SQ for emacs-orgmode@gnu.org; Sat, 13 Sep 2008 15:59:37 -0400 Received: from ey-out-1920.google.com ([74.125.78.149]:60390) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KebHN-0001M3-DK for emacs-orgmode@gnu.org; Sat, 13 Sep 2008 15:59:37 -0400 Received: by ey-out-1920.google.com with SMTP id 4so610318eyg.24 for ; Sat, 13 Sep 2008 12:59:36 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Jason F. McBrayer" Cc: org-mode On Aug 15, 2008, at 7:05 PM, Jason F. McBrayer wrote: > Rainer Stengele 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