emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* question about performance when having multiple todo blocks from the same org files ..
@ 2014-01-13 13:02 Rainer Stengele
  2014-01-17  9:14 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Rainer Stengele @ 2014-01-13 13:02 UTC (permalink / raw)
  To: emacs-orgmode

Hi.

I have a complex agenda function as can be seen below.
Beside an agenda call I do want to show todos separated in blocks, grouped by priority or tags.
I want to show my prio A todos as one block before showing the rest of the todos sorted by prio.
I was wondering if Org does run through all the org files again and again in order to collect the data wanted
or if there is something like a cache is being filled when running through all buffers, collects all todos and then groups, sorts
and is availble for printing out whats wanted.

Thank you for a reply from someone who knows the internals.

Rainer

Org-mode version 8.2.2 (release_8.2.2-193-gf10166)

...
	("01" "agenda - prio A,B todos - sorted prio up - today"  ;;
	 (

	  ;; show ONGOING todos first, but only if unscheduled, skip if scheduled
	  (tags-todo "ONGOING"
		     ((org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled))
		      (org-agenda-overriding-header "ONGOING todos: ")))
	  (agenda "todays agenda"
		  (
		   ;; (org-agenda-skip-function
		   ;; (lambda nil
		   ;;   (org-agenda-skip-entry-if 'regexp ":ONGOING:")))
		   ;; (org-agenda-skip-entry-if 'regexp ":ONGOING:")))
		   (org-agenda-span 'day)
		   (org-agenda-start-with-log-mode t)
		   (org-agenda-start-with-clockreport-mode t)

		   (org-agenda-overriding-header "Today's Agenda")))

	  (alltodo "!!! TODOs Prio A - skip ONGOING todos!!!"
		   (
		    (org-agenda-skip-function (lambda nil
						(or (org-agenda-skip-entry-if (quote notregexp) "\\=.*\\[#A\\]")
						    (org-agenda-skip-entry-if 'regexp ":ONGOING:")
						    (org-agenda-skip-entry-if 'scheduled 'deadline ))))
		    (org-agenda-overriding-header "!!! TODOs prio A - skip ONGOING todos: !!!")
		    ))
	  (alltodo "todos Prio B til D - skip ONGOING todos"
		   (
		    (org-agenda-skip-function (lambda nil
						(or (org-agenda-skip-entry-if (quote notregexp) "\\=.*\\[#B\\|#C\\|#D\\]")
						    (org-agenda-skip-entry-if 'regexp ":ONGOING:")
						    (org-agenda-skip-entry-if 'scheduled 'deadline ))))
		    (org-agenda-overriding-header "All todos prio B til D - skip ONGOING todos: ")
		    ))
	  )
	 ((org-agenda-sorting-strategy '(time-up priority-down todo-state-up))))
...

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: question about performance when having multiple todo blocks from the same org files ..
  2014-01-13 13:02 question about performance when having multiple todo blocks from the same org files Rainer Stengele
@ 2014-01-17  9:14 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2014-01-17  9:14 UTC (permalink / raw)
  To: Rainer Stengele; +Cc: emacs-orgmode

Hi Rainer,

Rainer Stengele <rainer.stengele@online.de> writes:

> I was wondering if Org does run through all the org files again and
> again in order to collect the data wanted

Yes it does.  

Tips for optimizing the agenda speed can be found here:
http://orgmode.org/worg/agenda-optimization.html

But I'm not sure it will help in this case.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-17  9:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-13 13:02 question about performance when having multiple todo blocks from the same org files Rainer Stengele
2014-01-17  9:14 ` Bastien

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).