From: Daniel Clemente <n142857@gmail.com>
To: emacs-orgmode@gnu.org
Subject: faster agenda with properties support disabled (no org-refresh-properties)
Date: Mon, 12 Aug 2013 10:43:26 +0700 [thread overview]
Message-ID: <87siyf1sm9.wl%n142857@gmail.com> (raw)
In-Reply-To: <87d2ppjg53.fsf@gmail.com>
>
> M-x elp-instrument-package org
> M-x elp-reset-all
> <run your workload>
> M-x elp-results
Incidentally I ran that and I saw:
org-agenda 1 15.709354028 15.709354028
org-agenda-list 1 15.495628529 15.495628529
org-agenda-prepare 1 8.388162561 8.388162561
org-agenda-prepare-buffers 1 8.349513929 8.349513929
org-agenda-get-day-entries 477 5.7457141640 0.0120455223
org-agenda-get-scheduled 477 2.0763930930 0.0043530253
org-agenda-get-timestamps 477 2.046089454 0.0042894957
org-set-regexps-and-options-for-tags 164 1.8202055340 0.0110988142
org-refresh-properties 318 1.3865960840 0.0043603650
org-refresh-category-properties 159 1.1616332550 0.0073058695
org-agenda-get-deadlines 477 0.5512838650 0.0011557313
org-agenda-get-blocks 477 0.5356222019 0.0011228976
org-get-todo-state 3581 0.4114158859 0.0001148885
org-agenda-get-sexps 477 0.4037585499 0.0008464539
…
I looked at org-refresh-properties.
In org.el there is:
(defun org-agenda-prepare-buffers (files)
…
(org-refresh-category-properties)
(org-refresh-properties org-effort-property 'org-effort)
(org-refresh-properties "APPT_WARNTIME" 'org-appt-warntime)
…
Since I am not using effort/category/appointment properties in my agenda, I would like to disable it. I commented it in the code and I get the same agenda but 2'4 seconds faster (even more than 1'4 from org-refresh-properties). The new instrumentation report is:
org-agenda 1 13.345656663 13.345656663
org-agenda-list 1 13.113396681 13.113396681
org-agenda-prepare 1 7.086576653 7.086576653
org-agenda-prepare-buffers 1 7.054057855 7.054057855
org-agenda-get-day-entries 477 5.7340928759 0.0120211590
org-agenda-get-scheduled 477 3.3844209709 0.0070952221
org-set-regexps-and-options-for-tags 164 1.8059163709 0.0110116851
org-refresh-properties 318 1.3982702620 0.0043970762
org-refresh-category-properties 159 1.1513761240 0.0072413592
org-agenda-get-timestamps 477 0.6975214329 0.0014623090
org-agenda-get-deadlines 477 0.557952655 0.0011697120
org-agenda-get-blocks 477 0.533165758 0.0011177479
org-agenda-skip 3977 0.4244523499 0.0001067267
…
So I would like to ask: is there a clean way to disable calls to org-refresh-properties?
next prev parent reply other threads:[~2013-08-12 3:43 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-07 20:25 Very slow performance in Org-mode on 10k line file? John Hendy
2013-08-07 21:39 ` Rainer Stengele
2013-08-07 21:47 ` John Hendy
2013-08-07 22:06 ` John Hendy
2013-08-07 22:12 ` Russell Adams
2013-08-07 22:17 ` John Hendy
2013-08-07 22:44 ` Russell Adams
2013-08-07 22:22 ` Nick Dokos
2013-08-07 22:24 ` John Hendy
2013-08-07 22:39 ` Nick Dokos
2013-08-07 23:02 ` John Hendy
2013-08-08 5:13 ` Achim Gratz
2013-08-12 3:43 ` Daniel Clemente [this message]
2013-08-12 5:36 ` faster agenda with properties support disabled (no org-refresh-properties) Carsten Dominik
2013-08-23 9:24 ` Daniel Clemente
2013-08-28 4:28 ` Samuel Wales
2013-08-28 8:28 ` Daniel Clemente
2013-08-31 5:58 ` Carsten Dominik
2013-08-31 6:22 ` Bastien
2013-09-02 5:09 ` Carsten Dominik
2013-09-02 10:54 ` Bastien
2013-09-03 12:02 ` Daniel Clemente
2013-09-03 13:21 ` 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 \
--in-reply-to=87siyf1sm9.wl%n142857@gmail.com \
--to=n142857@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).