From: "Jason Jackson" <firstname.lastname@example.org> To: Matthew Lundin <email@example.com> Cc: firstname.lastname@example.org Subject: Re: [PERF] Slow Org Agenda Custom Commands Date: Mon, 12 Jan 2009 16:56:19 +1100 [thread overview] Message-ID: <email@example.com> (raw) In-Reply-To: <firstname.lastname@example.org> [-- Attachment #1.1: Type: text/plain, Size: 2142 bytes --] Thank you Matthew, this improved the performance to an acceptable ~half second I still wonder if multiple property searches could be optimized somehow, but for my purposes I'm satisfied =) For example, you can't use agenda filter commands with org-stuck-project-list, thus you'd have to resort to a slow property search. Some people might want to search for high priority stuck projects. (I solved this by introducing different 'priority' todo states) -Jason On Mon, Jan 12, 2009 at 1:34 PM, Matthew Lundin <email@example.com> wrote: > > Hi Jason, > > "Jason Jackson" <firstname.lastname@example.org> 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 > [-- Attachment #1.2: Type: text/html, Size: 3403 bytes --] [-- Attachment #2: Type: text/plain, Size: 204 bytes --] _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacsemail@example.com http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2009-01-12 5:56 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-01-11 0:08 Jason Jackson 2009-01-12 2:34 ` Matthew Lundin 2009-01-12 5:56 ` Jason Jackson [this message] 2009-01-18 19:50 ` Carsten Dominik
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 \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --subject='Re: [PERF] Slow Org Agenda Custom Commands' \ /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
Code repositories for project(s) associated with this 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).