From mboxrd@z Thu Jan 1 00:00:00 1970 From: Susan Addy Subject: slow agenda view and scrolling through headlines Date: Sun, 13 Nov 2011 14:03:17 -0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016367fa8c326257a04b1a4edd1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPi9N-0002pQ-SG for emacs-orgmode@gnu.org; Sun, 13 Nov 2011 17:03:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPi9M-0007Q2-8Y for emacs-orgmode@gnu.org; Sun, 13 Nov 2011 17:03:41 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:59872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPi9L-0007Pt-VF for emacs-orgmode@gnu.org; Sun, 13 Nov 2011 17:03:40 -0500 Received: by wyg24 with SMTP id 24so6427361wyg.0 for ; Sun, 13 Nov 2011 14:03:38 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --0016367fa8c326257a04b1a4edd1 Content-Type: text/plain; charset=ISO-8859-1 I am an avid user of org mode for all of my notes (usually kept under headlines with dates) and TODOs. I now have 5 agenda files with a total of about 25,000 lines, about 25% of which are headlines. Sometimes, when I run agenda, it is very slow to compile - about 10-15 seconds. During these times, it is also slow to scroll through the high level headings (about 5-6 seconds each to get to the next heading). However, others times, the same commands are much faster - 2 seconds to compile the agenda and an immediate response when scrolling. I can't find a pattern to when it is slow versus fast. It is usually fast the first time I open emacs, even if I just restarted the computer and opened emacs. It doesn't seem to matter what else is running on the computer. Sometimes it stays fast for several hours, and then all of sudden will be slow - even if nothing has been added to the file in the meantime. I've considered some major changes to try and fix this, like converting all of my headlines that don't have todo items (i.e. notes that start with a date) to a list instead of a headline. I've also considered trying to use the logbook for notes instead of headlines. However, if it is just having trouble scanning through so many headlines, I don't understand why it can compile the agenda fast some times and not others. I also don't know if scroll would be any faster, because the same number of lines would still be there. If scroll was always slow at first and then fast later, that might make sense too (maybe it is remembering some of the structure after the first scroll?). Below is a list of my agenda command - maybe it is too long? When it is slow, it is slow no matter what TODO I am trying to compile. Any thoughts? Thank you! (setq org-agenda-custom-commands '(("d" "Daily Action List (work)" ((agenda "" ((org-agenda-ndays 5) (org-deadline-warning-days 0) (org-agenda-repeating-timestamp-show-all t) (org-agenda-skip-scheduled-if-done nil))))) ("n" "NextActions List (work)" ((agenda "" ((org-agenda-ndays 1) (org-use-tag-inheritance nil) (org-agenda-repeating-timestamp-show-all t))) (tags-todo "work+TODO=\"NEXTACTION\"" ((org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled)))))) ("p" "Active Projects List (work)" ((tags-todo "work/PRJ" ((org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled)) )))) ("o" "Ongoing Projects List (work)" ((tags-todo "work/ONGOING" ((org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled)) )))) ("w" "Waiting For List (work)" ((tags-todo "work/WAITING"))) ("s" "Someday/Maybe List (work)" ((tags-todo "work/SOMEDAY" ))) ("y" "Delegated Projects (work)" ((tags-todo "work/YOUDO"))) ("H" "How To List" ((tags "HowTo"))) ("g" "Things to google" ((tags "google"))) ("a" "agendas (work)" ((tags-todo "work/AGENDA" ((org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled)) )))) ("N" "NextActions List (home)" ((agenda "" ((org-agenda-ndays 1) (org-agenda-repeating-timestamp-show-all t))) (tags-todo "home+TODO=\"NEXTACTION\"" ((org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled)) )))) ("P" "Active Projects List (home)" ((tags-todo "home/PRJ" ((org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled)) )))) ("O" "Ongoing Projects List (home)" ((tags-todo "home/ONGOING" ((org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled)) )))) ("W" "Waiting For List (home)" ((tags-todo "home/WAITING"))) ("S" "Someday/Maybe List (home)" ((tags-todo "home/SOMEDAY" ))) ("Y" "Delegated Projects (home)" ((tags-todo "home/YOUDO"))) ("A" "agendas (home)" ((tags-todo "home/AGENDA" ((org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled)) )))) )) --0016367fa8c326257a04b1a4edd1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I am an avid user of org mode for all of my notes (usually kept under headl= ines with dates) and TODOs. I now have 5 agenda files with a total of about= 25,000 lines, about 25% of which are headlines.=A0

Some= times, when I run agenda, it is very slow to compile - about 10-15 seconds.= During these times, it is also slow to scroll through the high level headi= ngs (about 5-6 seconds each to get to the next heading). However, others ti= mes, the same commands are much faster - 2 seconds to compile the agenda an= d an immediate response when scrolling. I can't find a pattern to when = it is slow versus fast. It is usually fast the first time I open emacs, eve= n if I just restarted the computer and opened emacs. It doesn't seem to= matter what else is running on the computer. Sometimes it stays fast for s= everal hours, and then all of sudden will be slow - even if nothing has bee= n added to the file in the meantime.=A0

I've considered some major changes to try and fix t= his, like converting all of my headlines that don't have todo items (i.= e. notes that start with a date) to a list instead of a headline. I've = also considered trying to use the logbook for notes instead of headlines. H= owever, if it is just having trouble scanning through so many headlines, I = don't understand why it can compile the agenda fast some times and not = others. I also don't know if scroll would be any faster, because the sa= me number of lines would still be there. =A0If scroll was always slow at fi= rst and then fast later, that might make sense too (maybe it is remembering= some of the structure after the first scroll?).

Below is a list of my agenda command - maybe it is too = long? When it is slow, it is slow no matter what TODO I am trying to compil= e.

Any thoughts?=A0
Thank you!

(setq org-agenda-custom-commands
=A0 =A0 =A0 '= (("d" "Daily Action List (work)"
((agenda ""= ; ((org-agenda-ndays 5)
=A0= =A0 =A0(org-deadline-warning-days 0)
=A0 =A0 =A0(org-agenda-repeating-ti= mestamp-show-all t)
=A0= =A0 =A0(org-agenda-skip-scheduled-if-done nil)))))
("n" "= NextActions List (work)"
((ag= enda "" ((org-agenda-ndays 1)
=A0 =A0 =A0(org-use-tag-inheritan= ce nil)
=A0= =A0 =A0(org-agenda-repeating-timestamp-show-all t)))
=A0(tags-todo "= work+TODO=3D\"NEXTACTION\""=A0
=A0= =A0 ((org-agenda-skip-function
=A0 =A0 =A0 '(org-agenda-skip= -entry-if 'scheduled))))))
("p" "Active Projects List (w= ork)"
((ta= gs-todo "work/PRJ"=A0
=A0 =A0 ((org-agenda-skip-function '(= org-agenda-skip-entry-if
= =A0'scheduled))
=A0 =A0 =A0))))
("o" "Ongoing Project= s List (work)"
((ta= gs-todo "work/ONGOING"=A0
=A0 =A0 ((org-agenda-skip-function &#= 39;(org-agenda-skip-entry-if
= =A0'scheduled)) =A0)))) =A0 =A0
("w" "Waiting For List = (work)"
((ta= gs-todo "work/WAITING")))
("s" "Someday/Maybe List= (work)"
((ta= gs-todo "work/SOMEDAY" )))
("y" "Delegated Project= s (work)"
((ta= gs-todo "work/YOUDO")))
("H" "How To List"
((tags &q= uot;HowTo")))
("g" "Things to google"
((tags &quo= t;google")))
(&quo= t;a" "agendas (work)"
((tags-todo "work/AGENDA"
=A0= =A0 ((org-agenda-skip-function '(org-agenda-skip-entry-if
=A0= 9;scheduled))
=A0= =A0 =A0))))
("N" "NextActions List (home)"
<= span class=3D"Apple-tab-span" style=3D"white-space:pre"> ((agenda &= quot;" ((org-agenda-ndays 1)
=A0= =A0 =A0(org-agenda-repeating-timestamp-show-all t)))
=A0(tags-todo
<= div> =A0 &= quot;home+TODO=3D\"NEXTACTION\""=A0
=A0 = ((org-agenda-skip-function '(org-agenda-skip-entry-if
'schedule= d)) =A0))))
(&quo= t;P" "Active Projects List (home)"
((tags-todo "home/P= RJ"=A0
=A0= =A0 ((org-agenda-skip-function '(org-agenda-skip-entry-if
=A0= 9;scheduled))
=A0= =A0 =A0))))
("O" "Ongoing Projects List (home)"
<= div> ((tag= s-todo "home/ONGOING"=A0
=A0= =A0 ((org-agenda-skip-function '(org-agenda-skip-entry-if
=A0= 9;scheduled)) =A0)))) =A0 =A0
(&quo= t;W" "Waiting For List (home)"
((tags-todo "home/WAITI= NG")))
(&quo= t;S" "Someday/Maybe List (home)"
((tags-todo "home/SOM= EDAY" )))
(&quo= t;Y" "Delegated Projects (home)"
((tags-todo "home/YOU= DO")))
(&quo= t;A" "agendas (home)"
((tags-todo "home/AGENDA"
=A0= =A0 ((org-agenda-skip-function '(org-agenda-skip-entry-if
=A0= 9;scheduled))
=A0= =A0 =A0))))
))
=A0
=A0=A0 =A0

=A0
--0016367fa8c326257a04b1a4edd1--