From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: [PERF] Slow Org Agenda Custom Commands Date: Sun, 11 Jan 2009 20:34:02 -0600 Message-ID: References: <2df907590901101608j16f2c5a9xe5bcf5d0c85a75ff@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LMCd4-0002Z3-NM for emacs-orgmode@gnu.org; Sun, 11 Jan 2009 21:34:14 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LMCd3-0002Yq-M2 for emacs-orgmode@gnu.org; Sun, 11 Jan 2009 21:34:14 -0500 Received: from [199.232.76.173] (port=54056 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMCd2-0002Ym-PY for emacs-orgmode@gnu.org; Sun, 11 Jan 2009 21:34:12 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:49837) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LMCd2-00044f-Ev for emacs-orgmode@gnu.org; Sun, 11 Jan 2009 21:34:12 -0500 In-Reply-To: <2df907590901101608j16f2c5a9xe5bcf5d0c85a75ff@mail.gmail.com> (Jason Jackson's message of "Sun\, 11 Jan 2009 11\:08\:26 +1100") 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 Jackson Cc: emacs-orgmode@gnu.org Hi Jason, "Jason Jackson" writes: > I'm using the following org agenda custom command, with a relatively small > org-mode text file, and agenda creation is taking around 3-4 seconds, it > becomes unbearably worse if I modify stuck-projects to also use properties > searches) > > Is there anything I can change to speed up the commands execution; or > developer changes to org-mode? > > (setq org-agenda-custom-commands > '(("h" "Next Action" > ( > (agenda "" > ((org-agenda-ndays 1) > (org-agenda-time-grid '()) > (org-deadline-warning-days 5) > (org-agenda-sorting-strategy '(time-up priority-down)) > (org-agenda-skip-deadline-if-done t) > (org-agenda-overriding-header "Today's Agenda: ") > )) > ;;;;;;; SLOW COMMAND #1 > (tags "@HOME-habit-__IGNORE-SCHEDULED>\"<2000-01-01>\"/TODO|BLOCKED| > SUBMIT" > ((org-agenda-sorting-strategy '(priority-down)) > (org-agenda-overriding-header "Unscheduled Todo > (@Home): ") > )) As you suggest, any searches for properties other than TODO, LEVEL, and CATEGORY can be quite slow. Have you considered using a todo search and then using secondary filtering to limit by tag. This would enable you to use either of the following variables: - org-agenda-todo-ignore-with-date - org-agenda-todo-ignore-scheduled Best, Matt