From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Stengele Subject: Re: Performance problem when switching agenda views - need for cache? Date: Fri, 15 Jul 2011 20:00:03 +0200 Message-ID: <4E208023.1040806@online.de> References: <87hb6n8rt0.fsf@mean.albasani.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qhmge-0006AL-8D for emacs-orgmode@gnu.org; Fri, 15 Jul 2011 14:00:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QhmgY-00035O-L5 for emacs-orgmode@gnu.org; Fri, 15 Jul 2011 14:00:27 -0400 Received: from lo.gmane.org ([80.91.229.12]:39149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhmgX-000353-Pn for emacs-orgmode@gnu.org; Fri, 15 Jul 2011 14:00:22 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QhmgT-0004wM-Ts for emacs-orgmode@gnu.org; Fri, 15 Jul 2011 20:00:17 +0200 Received: from dslb-188-098-229-113.pools.arcor-ip.net ([188.98.229.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Jul 2011 20:00:17 +0200 Received: from rainer.stengele by dslb-188-098-229-113.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Jul 2011 20:00:17 +0200 In-Reply-To: <87hb6n8rt0.fsf@mean.albasani.net> 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 Cc: emacs-orgmode@gnu.org Am 15.07.2011 18:00, schrieb Memnon Anon: > Hi Rainer, > > Sorry, I can not really comment/help with anything. > Just curious: > > Rainer Stengele writes: >> This process, switching to "all todos" and back to "weekly agenda" >> takes about 18 (!) seconds netto. This is a lot! > > a) How many files are in your agenda file list? > b) How many "all todos" do you have? > > 18 seconds is a lot, indeed. > With my 512 megs RAM, 1.2 Mhz PIII Laptop, I do heavy and frequent > archiving, but preparing for exams, the amount of data will rise, soon. > > Memnon "a bit worried" Anon > > > Hi Memnon Anon, I have 8 org-agenda files. Doing a "wc" word count on them gives me: 199 953 10169 f1.org 4105 32563 257460 f2.org 634 4667 35699 f3..org 21567 169446 1524359 f4.org 2413 19708 137255 f5.org 6095 44852 376551 f6.org 601 4994 53794 f7.org 687 4601 37535 f8.org 36301 281784 2432822 total (newline, word, byte - count) Is that a lot? Another thing: here at home running a Linux machine slower than my machine at work gives me about half the needed time. But still - 9 seconds is eternity when you want to continue to type. Thanks, Rainer org-agenda 2 8.6050639999 4.3025319999 org-agenda-get-day-entries 64 6.8014240000 0.1062722500 org-agenda-run-series 1 5.936252 5.936252 org-let2 1 5.4234729999 5.4234729999 org-agenda-list 1 5.423455 5.423455 org-agenda-get-scheduled 56 3.7570829999 0.0670907678 org-todo-list 1 2.412072 2.412072 org-end-of-subtree 3058 1.8816570000 0.0006153227 org-back-to-heading 10468 1.6175330000 0.0001545216 org-agenda-get-todos 8 1.4600440000 0.1825055000 org-get-todo-state 5082 1.2833800000 0.0002525344 org-get-tags-at 340 1.0942230000 0.0032183029 org-up-heading-safe 1577 1.0430819999 0.0006614343 org-prepare-agenda 3 1.02636 0.34212 org-prepare-agenda-buffers 2 0.94225 0.471125 org-agenda-get-deadlines 56 0.525749 0.0093883750 org-agenda-skip 7745 0.5250920000 6.779...e-05 org-let 2 0.512741 0.2563705 org-agenda-get-timestamps 56 0.4285510000 0.0076526964 org-refresh-category-properties 16 0.36568 0.022855 org-agenda-get-progress 56 0.3305779999 0.0059031785 org-finalize-agenda-entries 6 0.313683 0.0522805 org-agenda-get-restriction-and-command 1 0.256535 0.256535 org-agenda-highlight-todo 344 0.2019640000 0.0005871046 org-agenda-get-blocks 56 0.1740139999 0.0031073928 org-time-string-to-absolute 4788 0.1524200000 3.183...e-05 org-add-props 1392 0.1463960000 0.0001051695 org-format-agenda-item 344 0.1366120000 0.0003971279 org-agenda-get-sexps 56 0.1168700000 0.0020869642 org-outline-level 5872 0.1135730000 1.934...e-05 org-get-effort 341 0.0920470000 0.0002699325 org-entry-get 341 0.0898990000 0.0002636334 org-entries-lessp 1623 0.0883479999 5.443...e-05 org-on-heading-p 540 0.0754820000 0.0001397814 org-get-wdays 175 0.0732219999 0.0004184114 org-get-priority 277 0.0621459999 0.0002243537 org-at-date-range-p 268 0.0584360000 0.0002180447 org-get-property-block 341 0.057254 0.0001679002 org-finalize-agenda 3 0.054319 0.0181063333 org-parse-time-string 5096 0.0530510000 1.041...e-05 org-agenda-align-tags 2 0.042237 0.0211185 org-get-entries-from-diary 7 0.036036 0.005148 org-before-first-heading-p 341 0.0274209999 8.041...e-05 org-agenda-skip-eval 10610 0.0221319999 2.085...e-06 org-closest-date 322 0.0153310000 4.761...e-05 org-date-to-gregorian 644 0.0078180000 1.213...e-05 org-switch-to-buffer-other-window 1 0.007546 0.007546 org-mode 1 0.006625 0.006625 org-time-string-to-time 308 0.0062409999 2.026...e-05 org-agenda-fontify-priorities 2 0.00607 0.003035 org-agenda-new-marker 411 0.0059089999 1.437...e-05 org-agenda-files 7 0.0047399999 0.0006771428 org-fontify-priorities 2 0.004616 0.002308 org-agenda-fix-displayed-tags 344 0.004231 1.229...e-05 org-check-agenda-file 80 0.00419 5.2375e-05 org-set-startup-visibility 1 0.003561 0.003561 org-agenda-todayp 119 0.0034680000 2.914...e-05 org-cycle 2 0.0034319999 0.0017159999 org-cycle-internal-global 2 0.0030499999 0.0015249999 org-get-todo-face 340 0.0030420000 8.947...e-06 org-get-agenda-file-buffer 80 0.0028379999 3.547...e-05 org-unhighlight 4 0.002836 0.000709 org-get-time-of-day 197 0.0026370000 1.338...e-05 org-today 129 0.0026129999 2.025...e-05 org-detach-overlay 4 0.002476 0.000619 org-find-base-buffer-visiting 80 0.002256 2.82e-05 org-diary-sexp-entry 7 0.002052 0.0002931428 org-agenda-mode 2 0.002001 0.0010005 org-install-agenda-files-menu 1 0.001724 0.001724 org-float-time 411 0.0016190000 3.939...e-06 org-before-change-function 615 0.0014820000 2.409...e-06 org-split-string 322 0.0013459999 4.180...e-06 org-remove-uninherited-tags 592 0.0012670000 2.140...e-06 org-uniquify 12 0.0012569999 0.0001047499 org-face-from-face-or-color 546 0.0011850000 2.170...e-06 org-activate-bracket-links 2 0.001185 0.0005925 org-downcase-keep-props 371 0.0011479999 3.094...e-06 org-agenda-get-category-icon 344 0.0009299999 2.703...e-06 org-get-category 341 0.0008939999 2.621...e-06 org-trim 90 0.0008610000 9.566...e-06 org-hh:mm-string-to-minutes 126 0.0008189999 6.499...e-06 org-add-prop-inherited 256 0.0006989999 2.730...e-06 org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item 277 0.0006319999 2.281...e-06 org-set-regexps-and-options 1 0.000553 0.000553 org-agenda-add-time-grid-maybe 5 0.000471 9.42e-05 org-diary-default-entry 7 0.0004340000 6.2e-05 org-agenda-cleanup-fancy-diary 7 0.0004329999 6.185...e-05 org-add-to-diary-list 7 0.000382 5.457...e-05 org-agenda-get-day-face 7 0.0003509999 5.014...e-05 org-modify-diary-entry-string 7 0.0003180000 4.542...e-05 org-agenda-time-of-day-to-ampm-maybe 130 0.0002789999 2.146...e-06 org-agenda-format-date-aligned 7 0.000274 3.914...e-05 org-agenda-reset-markers 2 0.000178 8.9e-05 org-unfontify-region 3 0.000165 5.5e-05 org-compile-prefix-format 2 0.000146 7.3e-05 org-days-to-iso-week 7 0.0001129999 1.614...e-05 org-file-menu-entry 24 0.0001090000 4.541...e-06 org-agenda-mark-clocking-task 2 0.000106 5.3e-05 org-cycle-show-empty-lines 3 9.1e-05 3.033...e-05 org-agenda-span-name 10 7.7e-05 7.7e-06 org-cycle-item-indentation 2 7.4e-05 3.7e-05 org-cycle-hide-archived-subtrees 3 7.2e-05 2.4e-05 org-extract-log-state-settings 6 6.3e-05 1.05e-05 org-add-hook 8 6.3e-05 7.875e-06 org-cycle-level 2 5.5e-05 2.75e-05 org-at-item-p 2 5.4e-05 2.7e-05 org-set-font-lock-defaults 1 4.9e-05 4.9e-05 org-update-radio-target-regexp 1 4.6e-05 4.6e-05 org-set-autofill-regexps 1 4.4e-05 4.4e-05 org-hide-block-toggle-maybe 2 4.3e-05 2.15e-05 org-babel-hide-result-toggle-maybe 2 3.6e-05 1.8e-05 org-point-at-end-of-empty-headline 2 3.5e-05 1.75e-05 org-assign-fast-keys 1 3.5e-05 3.5e-05 org-remove-font-lock-display-properties 3 2.6e-05 8.666...e-06 org-babel-hide-all-hashes 1 2.6e-05 2.6e-05 org-hide-archived-subtrees 2 2.5e-05 1.25e-05 org-content 1 2.5e-05 2.5e-05 org-cycle-hide-drawers 3 2.4e-05 8e-06 org-agenda-post-command-hook 4 2.2e-05 5.5e-06 org-make-options-regexp 1 2.2e-05 2.2e-05 org-set-visibility-according-to-property 1 1.9e-05 1.9e-05 org-agenda-set-mode-name 2 1.8e-05 9e-06 org-agenda-mark-header-line 2 1.7e-05 8.5e-06 org-item-re 3 1.7e-05 5.666...e-06 org-at-table-p 2 1.7e-05 8.5e-06 org-all-targets 1 1.3e-05 1.3e-05 org-remove-keyword-keys 1 1.2e-05 1.2e-05 org-optimize-window-after-visibility-change 2 1.1e-05 5.5e-06 org-get-at-bol 2 1e-05 5e-06 org-load-modules-maybe 3 9e-06 3e-06 org-overview 1 9e-06 9e-06 org-fit-agenda-window 2 8.000...e-06 4.000...e-06 org-set-sorting-strategy 2 7e-06 3.5e-06 org-region-active-p 1 6e-06 6e-06 org-src-native-tab-command-maybe 2 6e-06 3e-06 org-delete-all 1 6e-06 6e-06 org-agenda-ndays-to-span 2 6e-06 3e-06 org-babel-result-hide-spec 1 5e-06 5e-06 org-fit-window-to-buffer 1 5e-06 5e-06 org-compute-latex-and-specials-regexp 1 5e-06 5e-06 org-font-lock-add-tag-faces 2 4.999...e-06 2.499...e-06 org-clock-load 1 4e-06 4e-06 org-restart-font-lock 1 4e-06 4e-06 org-agenda-span-to-ndays 1 3e-06 3e-06 org-make-target-link-regexp 1 3e-06 3e-06