From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: faster agenda with properties support disabled (no org-refresh-properties) Date: Mon, 12 Aug 2013 07:36:20 +0200 Message-ID: <7BC61C18-28A7-41C7-8EC6-D2983A99C897@gmail.com> References: <87d2ppjg53.fsf@gmail.com> <87siyf1sm9.wl%n142857@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8knw-0001hI-76 for emacs-orgmode@gnu.org; Mon, 12 Aug 2013 01:36:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8knn-0002dk-Pk for emacs-orgmode@gnu.org; Mon, 12 Aug 2013 01:36:32 -0400 Received: from mail-ea0-x22c.google.com ([2a00:1450:4013:c01::22c]:50067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8knn-0002db-FQ for emacs-orgmode@gnu.org; Mon, 12 Aug 2013 01:36:23 -0400 Received: by mail-ea0-f172.google.com with SMTP id r16so3231420ead.3 for ; Sun, 11 Aug 2013 22:36:22 -0700 (PDT) In-Reply-To: <87siyf1sm9.wl%n142857@gmail.com> 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: Daniel Clemente Cc: emacs-orgmode@gnu.org On 12.8.2013, at 05:43, Daniel Clemente wrote: >=20 >>=20 >> M-x elp-instrument-package org >> M-x elp-reset-all >> >> M-x elp-results >=20 > Incidentally I ran that and I saw: >=20 > 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 > =1B$B!D=1B(B >=20 > I looked at org-refresh-properties. >=20 > In org.el there is: >=20 > (defun org-agenda-prepare-buffers (files) > =1B$B!D=1B(B > (org-refresh-category-properties) > (org-refresh-properties org-effort-property 'org-effort) > (org-refresh-properties "APPT_WARNTIME" 'org-appt-warntime) > =1B$B!D=1B(B >=20 > 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: >=20 > 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 > =1B$B!D=1B(B >=20 > So I would like to ask: is there a clean way to disable calls to = org-refresh-properties? No, that would require a patch and a config variable. - Carsten >=20 >=20