From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: Slow speed of week and month views Date: Sun, 6 Aug 2017 10:00:44 +0200 Message-ID: <2017-08-06T09-54-26@devnull.Karl-Voit.at> References: <87efsre565.fsf@grothesque.org> <878tiyr9tg.fsf@alphapapa.net> <2017-08-05T23-06-00@devnull.Karl-Voit.at> <87h8xlhccj.fsf@nicolasgoaziou.fr> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1deGUi-0001e8-D5 for emacs-orgmode@gnu.org; Sun, 06 Aug 2017 04:01:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1deGUf-0005wC-DO for emacs-orgmode@gnu.org; Sun, 06 Aug 2017 04:01:04 -0400 Received: from [195.159.176.226] (port=38420 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1deGUf-0005vp-2c for emacs-orgmode@gnu.org; Sun, 06 Aug 2017 04:01:01 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1deGUW-0003R4-4b for emacs-orgmode@gnu.org; Sun, 06 Aug 2017 10:00:52 +0200 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" To: emacs-orgmode@gnu.org * Nicolas Goaziou wrote: > Hello, Hi Nicolas, > Karl Voit writes: > >> My daily agenda takes twenty seconds, my weekly approximately a >> minute and generating a monthly agenda is something I can only do >> when I plan to leave the computer for a longer break. >> >> Org-mode does not scale well, I'm afraid. > > Well, we would at least need to profiling report as a starting point. > Could you provide one? First: I've occasionally mentioned all kinds of performance issues over the last years. I even started threads on how to improve things on a completely new level. I can provide many performance annoyances that affect me on a daily basis. So I am glad to be able to improve the situation for anybody. I have had slow agenda performance for many years and I had to live with it. Here is a current profiling report from my daily agenda: - command-execute 21948 98% - call-interactively 21948 98% - my-org-agenda 21518 96% - if 21518 96% - org-agenda-list 21518 96% - byte-code 21518 96% - byte-code 18530 82% - apply 18530 82% - org-agenda-get-day-entries 18530 82% - # 14961 66% - org-agenda-get-scheduled 14957 66% - byte-code 13977 62% - org-is-habit-p 6424 28% - org-entry-get 6236 27% - org--property-local-values 5876 26% - org-get-property-block 4258 19% - org-inlinetask-in-task-p 1619 7% org-inlinetask-outline-regexp 4 0% - org-back-to-heading 1512 6% - funcall 1512 6% - # 1512 6% outline-back-to-heading 1041 4% org-before-first-heading-p 360 1% org-get-limited-outline-regexp 19 0% - org-at-planning-p 3396 15% - funcall 2796 12% - # 2796 12% - org-inlinetask-in-task-p 1202 5% org-inlinetask-outline-regexp 12 0% - org-back-to-heading 1075 4% - funcall 1071 4% - # 1071 4% outline-back-to-heading 575 2% org-get-limited-outline-regexp 12 0% - org-get-todo-state 2044 9% - org-back-to-heading 1456 6% - funcall 1456 6% - # 1456 6% outline-back-to-heading 1021 4% + org-agenda-skip 528 2% + org-get-tags-at 276 1% + org-agenda--timestamp-to-absolute 96 0% + org-habit-parse-todo 65 0% + org-agenda-format-item 32 0% org-get-priority 16 0% byte-code 8 0% string-prefix-p 4 0% org-outline-level 4 0% - # 2237 10% - org-agenda-get-deadlines 2237 10% - byte-code 1899 8% - org-at-planning-p 896 4% - funcall 736 3% - # 736 3% - org-back-to-heading 284 1% - funcall 280 1% - # 280 1% outline-back-to-heading 144 0% - org-inlinetask-in-task-p 280 1% org-inlinetask-outline-regexp 4 0% org-get-limited-outline-regexp 4 0% - org-get-todo-state 599 2% - org-back-to-heading 399 1% - funcall 399 1% - # 399 1% - outline-back-to-heading 251 1% outline-on-heading-p 4 0% + org-agenda-skip 104 0% + org-agenda--timestamp-to-absolute 12 0% abbreviate-file-name 4 0% - # 1308 5% - org-agenda-get-blocks 688 3% - byte-code 360 1% - org-agenda-skip 88 0% org-in-src-block-p 12 0% org-end-of-subtree 4 0% - org-get-todo-state 4 0% - org-back-to-heading 4 0% - funcall 4 0% - # 4 0% outline-back-to-heading 4 0% - org-get-tags-at 4 0% - funcall 4 0% - # 4 0% - funcall 4 0% - # 4 0% match-string-no-properties 4 0% org-get-priority 4 0% time-to-days 4 0% + org-agenda-get-timestamps 620 2% + # 24 0% - org-agenda-prepare 1952 8% - org-agenda-prepare-buffers 1848 8% - funcall 1844 8% - # 1844 8% + org-end-of-subtree 596 2% + org-refresh-category-properties 252 1% + org-at-heading-p 172 0% + org-set-regexps-and-options 120 0% + org-in-commented-heading-p 8 0% org-check-agenda-file 4 0% + org-agenda-mode 104 0% + org-agenda-finalize 772 3% + org-get-entries-from-diary 196 0% + org-agenda-finalize-entries 28 0% put-text-property 8 0% + counsel-M-x 430 1% + ... 334 1% + timer-event-handler 76 0% mouse-fixup-help-message 10 0% You can find my personal setup on https://github.com/novoid/dot-emacs/blob/master/config.org Things related to my agenda start at https://github.com/novoid/dot-emacs/blob/master/config.org#agenda (the report is from my non-work files) -- get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode: > get Memacs from https://github.com/novoid/Memacs < Personal Information Management > http://Karl-Voit.at/tags/pim/ Emacs-related > http://Karl-Voit.at/tags/emacs/