Re: [Orgmode] Re: moving in the agenda view is slow
Hello all, I'm resurrecting an old (well, not that old) thread dealing with the agenda view being slow. I have now determined that, at least in my case, the problem is not with org but with the X server. On a dual screen setup, the agenda view is slow on one screen but shows instant response on the other, and this is for the same window: simply moving the window from one screen to another changes the performance. There is no way this could be org. I'm not sure what is happening with my X server but that's a problem outside the scope of this mailing list :-) -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.4 (release_7.4.25.geb0d) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: moving in the agenda view is slow: solved!
On Dec 1, 2010, at 4:11 PM, Rainer Stengele wrote: Am 29.11.2010 17:15, schrieb Sébastien Vauban: Hi Rainer, Rainer Stengele wrote: after disabling the showing of the outline path in agenda views: line-move 430 0.189000 0.0004395348 line-move-1 430 0.173000 0.0004023255 org-agenda-previous-line 214 0.156000 0.0007289719 org-agenda-next-line 216 0.095 0.0004398148 next-line 216 0.048 0.000222 org-agenda-do-context-action 430 0.047 0.0001093023 org-detach-overlay 431 0.015 3.48...e-005 org-unhighlight 431 0.015 3.48...e-005 line-move-partial 430 0.0 0.0 org-agenda-post-command-hook 431 0.0 0.0 org-get-at-bol 430 0.0 0.0 scrolling with "n" and "p" runs smoothly now! Sigh! That means the slowness is connected to my .emacs and org settings!? I'am afraid I have to go through all the settings and find the culprit. What do you exactly mean by: "disabling the showing of the outline path in agenda views"? Best regards, Seb Hi Sebastian I meant setting org-agenda-show-outline-path to nil. - Now the more intersting news. Reading through my .emacs I found and removed the 2 reasons for the slowness! 1. smooth-scolling.el (from http://www.emacswiki.org/emacs/SmoothScrolling) The file includes this: #+BEGIN_SRC emacs-lisp (defadvice previous-line (after smooth-scroll-down (&optional arg try-vscroll) activate) "Scroll down smoothly if cursor is within `smooth-scroll-margin' lines of the top of the window." (and ;; Only scroll down if there is buffer above the start of the window. (> (window-start) (buffer-end -1)) (let ((lines-from-window-top (smooth-scroll-lines-from-window-top))) (and ;; Only scroll down if we're within the top margin (<= lines-from-window-top smooth-scroll-margin) ;; Only scroll down if we're in the top half of the window (<= lines-from-window-top ;; N.B. `window-height' includes modeline, so if it returned 21, ;; that would mean exactly 10 lines in the top half and 10 in ;; the bottom. 22 (or any even number) means there's one in the ;; middle. In both cases the following expression will ;; yield 10: (/ (1- (window-height)) 2)) (save-excursion (scroll-down (1+ (- smooth-scroll-margin lines-from-window-top (defadvice next-line (after smooth-scroll-up (&optional arg try-vscroll) activate) "Scroll up smoothly if cursor is within `smooth-scroll-margin' lines of the bottom of the window." (and ;; Only scroll up if there is buffer below the end of the window. (< (window-end) (buffer-end 1)) (let ((lines-from-window-bottom (smooth-scroll-lines-from-window-bottom))) (and ;; Only scroll up if we're within the bottom margin (<= lines-from-window-bottom smooth-scroll-margin) ;; Only scroll up if we're in the bottom half of the window. (<= lines-from-window-bottom ;; See above notes on `window-height'. (/ (1- (window-height)) 2)) (save-excursion (scroll-up (1+ (- smooth-scroll-margin lines-from-window-bottom ;;;_ + provide (provide 'smooth-scrolling) #+END_SRC 2. (add-hook 'org-agenda-mode-hook 'hl-line-mode) - Switching off both features brings back immediate scrolling. I do miss the features of smooth-scrolling and hl-line but it is not worth the performance penalty. I guess this could be modified to use an idle timer, so that the hightlighting will not be updated while keyboard input is in the queue. Thanks to all for considering and helping. Indeed, quite a hunt. Great thread. - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: moving in the agenda view is slow: solved!
Rainer Stengele writes: [...] > 1. smooth-scolling.el (from > http://www.emacswiki.org/emacs/SmoothScrolling) I don't use anything like this, but... [...] > 2. (add-hook 'org-agenda-mode-hook 'hl-line-mode) this I do have! If I encounter the slowness again, I'll try disabling this. Thanks, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.3 (release_7.3.162.g8e74) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: moving in the agenda view is slow
On Nov 30, 2010, at 1:30 PM, Eric S Fraga wrote: Sébastien Vauban writes: Hi Rainer, Rainer Stengele wrote: after disabling the showing of the outline path in agenda views: [...] What do you exactly mean by: "disabling the showing of the outline path in agenda views"? Best regards, Seb I think he means the display that appears in the mini-buffer showing the headline structure that leads to the particular element in the agenda view. This is fontified (quite nicely, actually) and I was suspecting that this is what was causing a slowdown on my system as well which is why I think the problem has something to do with the windowing system and fonts... To disable this feature, use (setq org-agenda-show-outline-path nil) - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: moving in the agenda view is slow: solved!
Am 29.11.2010 17:15, schrieb Sébastien Vauban: > Hi Rainer, > > Rainer Stengele wrote: >> after disabling the showing of the outline path in agenda views: >> >> line-move 430 >> 0.189000 0.0004395348 >> line-move-1 430 >> 0.173000 0.0004023255 >> org-agenda-previous-line 214 >> 0.156000 0.0007289719 >> org-agenda-next-line 216 >> 0.095 0.0004398148 >> next-line 216 >> 0.048 0.000222 >> org-agenda-do-context-action 430 >> 0.047 0.0001093023 >> org-detach-overlay431 >> 0.015 3.48...e-005 >> org-unhighlight 431 >> 0.015 3.48...e-005 >> line-move-partial 430 >> 0.0 0.0 >> org-agenda-post-command-hook 431 >> 0.0 0.0 >> org-get-at-bol430 >> 0.0 0.0 >> >> scrolling with "n" and "p" runs smoothly now! Sigh! That means the slowness >> is connected to my .emacs and org settings!? I'am afraid I have to go >> through all the settings and find the culprit. > > What do you exactly mean by: "disabling the showing of the outline path in > agenda > views"? > > Best regards, > Seb > Hi Sebastian I meant setting org-agenda-show-outline-path to nil. - Now the more intersting news. Reading through my .emacs I found and removed the 2 reasons for the slowness! 1. smooth-scolling.el (from http://www.emacswiki.org/emacs/SmoothScrolling) The file includes this: #+BEGIN_SRC emacs-lisp (defadvice previous-line (after smooth-scroll-down (&optional arg try-vscroll) activate) "Scroll down smoothly if cursor is within `smooth-scroll-margin' lines of the top of the window." (and ;; Only scroll down if there is buffer above the start of the window. (> (window-start) (buffer-end -1)) (let ((lines-from-window-top (smooth-scroll-lines-from-window-top))) (and ;; Only scroll down if we're within the top margin (<= lines-from-window-top smooth-scroll-margin) ;; Only scroll down if we're in the top half of the window (<= lines-from-window-top ;; N.B. `window-height' includes modeline, so if it returned 21, ;; that would mean exactly 10 lines in the top half and 10 in ;; the bottom. 22 (or any even number) means there's one in the ;; middle. In both cases the following expression will ;; yield 10: (/ (1- (window-height)) 2)) (save-excursion (scroll-down (1+ (- smooth-scroll-margin lines-from-window-top (defadvice next-line (after smooth-scroll-up (&optional arg try-vscroll) activate) "Scroll up smoothly if cursor is within `smooth-scroll-margin' lines of the bottom of the window." (and ;; Only scroll up if there is buffer below the end of the window. (< (window-end) (buffer-end 1)) (let ((lines-from-window-bottom (smooth-scroll-lines-from-window-bottom))) (and ;; Only scroll up if we're within the bottom margin (<= lines-from-window-bottom smooth-scroll-margin) ;; Only scroll up if we're in the bottom half of the window. (<= lines-from-window-bottom ;; See above notes on `window-height'. (/ (1- (window-height)) 2)) (save-excursion (scroll-up (1+ (- smooth-scroll-margin lines-from-window-bottom ;;;_ + provide (provide 'smooth-scrolling) #+END_SRC 2. (add-hook 'org-agenda-mode-hook 'hl-line-mode) - Switching off both features brings back immediate scrolling. I do miss the features of smooth-scrolling and hl-line but it is not worth the performance penalty. Thanks to all for considering and helping. What a relieve to be able to again scroll fast in the agenda ... Best, Rainer ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: moving in the agenda view is slow
Sébastien Vauban writes: > Hi Rainer, > > Rainer Stengele wrote: >> after disabling the showing of the outline path in agenda views: [...] > > What do you exactly mean by: "disabling the showing of the outline path in > agenda > views"? > > Best regards, > Seb I think he means the display that appears in the mini-buffer showing the headline structure that leads to the particular element in the agenda view. This is fontified (quite nicely, actually) and I was suspecting that this is what was causing a slowdown on my system as well which is why I think the problem has something to do with the windowing system and fonts... -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.3 (release_7.3.99.g9db0.dirty) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: moving in the agenda view is slow
Eric S Fraga writes: [...] > In any case, I will try all of this on Tuesday on my office system. Well, I've tried it and I get essentially the same results as I did on my home system. The behaviour that I observed last week seems to have disappeared. Although the change in behaviour could be due to org changing, I think it's actually my X window system driver which was acting up last week and it could have been causing problems with the font server... I'll re-run the timings if and when the slow behaviour appears again. In summary, moving within the agenda window is now as it used to be: fast! -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.3 (release_7.3.99.g9db0.dirty) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: moving in the agenda view is slow
Hi Rainer, Rainer Stengele wrote: > after disabling the showing of the outline path in agenda views: > > line-move 430 > 0.189000 0.0004395348 > line-move-1 430 > 0.173000 0.0004023255 > org-agenda-previous-line 214 > 0.156000 0.0007289719 > org-agenda-next-line 216 > 0.095 0.0004398148 > next-line 216 > 0.048 0.000222 > org-agenda-do-context-action 430 > 0.047 0.0001093023 > org-detach-overlay431 > 0.015 3.48...e-005 > org-unhighlight 431 > 0.015 3.48...e-005 > line-move-partial 430 0.0 > 0.0 > org-agenda-post-command-hook 431 0.0 > 0.0 > org-get-at-bol430 0.0 > 0.0 > > scrolling with "n" and "p" runs smoothly now! Sigh! That means the slowness > is connected to my .emacs and org settings!? I'am afraid I have to go > through all the settings and find the culprit. What do you exactly mean by: "disabling the showing of the outline path in agenda views"? Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: moving in the agenda view is slow
Rainer Stengele wrote: > > scrolling with "n" and "p" runs smoothly now! Sigh! That means the > slowness is connected to my .emacs and org settings!? I'am afraid I > have to go through all the settings and find the culprit. > Great! That's real progress: in one fell swoop, you have eliminated 99.99% of the code that could be the culprit :-) However, it's not clear to me that it's your org settings: if the next-line sluggishness is real, then it's something in the emacs setup that causes it (again, unless there is some hidden connection back to org that I know nothing about). Nick ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: moving in the agenda view is slow
Am 28.11.2010 22:32, schrieb Nick Dokos: > Rainer Stengele wrote: > > >> I tried with pressing "n" step by step 10 times, so no leaning on the "n" >> key: >> >> org-agenda-next-line 10 >> 0.313999 0.0314 >> next-line 10 >> 0.313999 0.0314 >> org-detach-overlay12 >> 0.0 0.0 >> org-agenda-post-command-hook 12 >> 0.0 0.0 >> org-agenda-do-context-action 10 >> 0.0 0.0 >> org-get-at-bol10 >> 0.0 0.0 >> org-unhighlight 12 >> 0.0 0.0 >> font-lock-mode1 >> 0.0 0.0 >> font-lock-default-function1 >> 0.0 0.0 >> >> >> I see no change. Emacs is on Windows XP. >> > OK - next-line is indeed taking up all the time (but the exact equality > and the 0.0 times make me wonder about the clock resolution on this > platform and how reliable elp is here), so, unless there is some > backdoor connection, these delays have nothing to do with org - it's > emacs itself which is slow: 31ms per call is not as slow as it was > yesterday, but it's still 25x what I see. > > Eric, do you encounter this problem on Emacs/Windows XP as well? Has > anybody encountered this problem on anything *but* Emacs/Windows XP? > > Rainer, if you'd like to continue the exercise, maybe the thing to do is > to profile functions that next-line calls and get another profile. The > only other function that seems likely to take up time is line-move, so > you might proceed like this: > > Set up a minimal emacs so that you don't have to retype everything > over and over. Something like the following, where I assume you use > org-install to initialize org - you'll also have to change the load-path > and the list of org-agenda-files to suit your situation: > > --8<---cut here---start->8--- > (add-to-list 'load-path "~/elisp/org-mode/lisp") > (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . > org-mode)) > (require 'org-install) > (require 'org-agenda) > (global-set-key "\C-cl" 'org-store-link) > (global-set-key "\C-ca" 'org-agenda) > (global-set-key "\C-cr" 'elp-results) > > (elp-instrument-list '(org-agenda-next-line next-line line-move)) > (setq org-agenda-files '("~/lib/org/work.org" "~/lib/org/home.org")) > (org-agenda-list) > (elp-reset-all) > --8<---cut here---end--->8--- > > Save it in a file called minimal.emacs and then say > > emacs -Q --load minimal.emacs > > You should get an agenda - press "n" a dozen times, and then C-c r > to get the results. You can add more functions to the list above > (the next few candidates are line-move-partial, line-move-visual, > line-move-1). Assuming that you get consistent results implicating > these, I suspect that the thing to do is to post your findings in > an emacs forum or open an emacs bug report. > > I haven't gone back to check your original emails, but is there > a particular version of emacs that exhibits this problem? Is there > a version that does *not* exhibit it? When exactly did you start > noticing this behavior (relative to emacs updates etc)? > > Thanks, > Nick > > > Continuing the exercice I found: (elp-instrument-list '(org-agenda-next-line next-line line-move)) results in org-agenda-next-line 12 0.016 0.001333 next-line 12 0.0 0.0 line-move 12 0.0 0.0 (elp-instrument-list '(org-agenda-next-line next-line line-move line-move-partial line-move-visual line-move-1)) results in org-agenda-next-line 12 0.015 0.00125 next-line 12 0.0 0.0 line-move 12 0.0 0.0 line-move-partial 12 0.0 0.0 line-move-1 12 0.0 0.0 changing to agenda month view and "n"-ing through all entries results in: org-agenda-next-line 93 0.218000 0.0023440860 next-line 93 0.016 0.0001720430 line-move 93 0.0 0.0 line-move-partial 93 0.0 0.0 line-move-1 93 0.0 0.0 further, after elp-instrument-package RET org RET (and doing lots of "n"s and "p"s) org-agenda-do-context-action 445 1.516999 0.0034089887 org-display-outline-path 428 1.46 0.0034345794 org-get-outline-path 428 1.127000 0.0026331775 org-up
Re: [Orgmode] Re: moving in the agenda view is slow
Am 28.11.2010 23:31, schrieb Nick Dokos: > Eric S Fraga wrote: > >> Nick Dokos writes: >> >> [...] >> >>> Eric, do you encounter this problem on Emacs/Windows XP as well? Has >>> anybody encountered this problem on anything *but* Emacs/Windows XP? >> All my systems run Linux (Debian testing+unstable mix) so it's not the >> OS. >> > OK, thanks. It also eliminates the window system (unless Rainer is running > X on Windows), so it looks like an emacs problem. > > Nick No, I am running Windows XP, native Windows Emacs "GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-11-04 on LENNART-69DE564 (patched)" Rainer ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: moving in the agenda view is slow
Eric S Fraga wrote: > Nick Dokos writes: > > [...] > > > Eric, do you encounter this problem on Emacs/Windows XP as well? Has > > anybody encountered this problem on anything *but* Emacs/Windows XP? > > All my systems run Linux (Debian testing+unstable mix) so it's not the > OS. > OK, thanks. It also eliminates the window system (unless Rainer is running X on Windows), so it looks like an emacs problem. Nick ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: moving in the agenda view is slow
Nick Dokos writes: [...] > Eric, do you encounter this problem on Emacs/Windows XP as well? Has > anybody encountered this problem on anything *but* Emacs/Windows XP? All my systems run Linux (Debian testing+unstable mix) so it's not the OS. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.3 (release_7.3.148.gc3b7e) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: moving in the agenda view is slow
Eric S Fraga wrote: > Okay, here are mine for 11 presses of the n command: > > --8<---cut here---start->8--- > org-agenda-next-line 11 0.063334 0.0057576363 > next-line11 0.033 0.003 > org-agenda-do-context-action 11 0.030161 0.002741 > org-display-outline-path 11 0.029602 0.0026910909 > org-get-outline-path 11 0.023259 0.0021144545 > org-up-heading-safe 44 0.022231 0.0005052727 > org-back-to-heading 44 0.000716 1.629...e-05 > org-format-outline-path 11 0.000484 4.409...e-05 > org-outline-level77 0.000479 6.220...e-06 > org-unhighlight 15 0.000189 1.266...e-05 > org-add-props33 9.399...e-05 2.848...e-06 > org-agenda-post-command-hook 15 4.499...e-05 2.999...e-06 > org-get-at-bol 11 3.9e-05 3.545...e-06 > org-detach-overlay 15 3.4e-05 2.266...e-06 > --8<---cut here---end--->8--- > > I'm not sure what conclusions to draw from here (but, again, this is on > my home system which seems much faster than my office system despite > being a slower computer with less memory etc). > > > PS Incidentally, note that in my case the next-line times account for > > about 40% of the org-agenda-next-line times: the other 60% is accounted > > for by org-agenda-do-context-action. In your original profile, the latter > > was insignificant: that's why I'd like to see the next-line results. > > And in mine, next-line is >50% of the time with the remainder being > org-agenda-do-context-action. What does this mean? > It's qualitatively different from Rainer's original profile. org-agenda-next-line calls next-line and then org-agenda-do-context-action. In Rainer's profile, the latter took almost no time, whereas in your faster system and also in mine, there is a roughly 50/50 (or 40/60) split. In Rainer's later profiles, it's a 100/0 split. That, along with the fact that the whole thing takes much longer (somewhere from 10x to 50x[fn:1]) leads to the conclusion that probably something is busted in next-line. So it doesn't mean much: just gathering sticks for now and maybe we can build a house with them (then again, maybe not). > In any case, I will try all of this on Tuesday on my office system. I'd be very interested to learn what you find out. Thanks, Nick Footnotes: [fn:1] this kind of variance bothers me, but I guess I'll have to live with it. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: moving in the agenda view is slow
Am 28.11.2010 21:01, schrieb Nick Dokos: Rainer Stengele wrote: Am 28.11.2010 01:30, schrieb Nick Dokos: Rainer Stengele wrote: Am 27.11.2010 20:23, schrieb Nick Dokos: ... Can you do M-x elp-instrument-function next-line and get another profile? ok, I did, getting org-agenda-next-line 10 0.864912 0.0864912 org-unhighlight 14 0.000875 6.257...e-05 org-detach-overlay14 0.000622 4.449...e-05 org-agenda-do-context-action 10 0.000274 2.74e-05 org-get-at-bol10 9.400...e-05 9.400...e-06 org-agenda-post-command-hook 14 7.5e-05 5.357...e-06 for 10 "next-lines", all in the agenda block of Monday 29 November 2010 W48 which means there is no date crossing. What can I do to detail org-agenda-next-line? Apparently, you didn't read my mail carefully enough: see above. Nick Nick, sorry if I misunderstand, I tried again and get this: which probably is not what we expect to see? What I do is: being in the agenda I enter M-x elp-instrument-function next-line then enter "n" once and get: next-line 1 0.016 0.016 Thats really all I get. No more line than this one. I just tried the following sequence: --8<---cut here---start->8--- o Start a new emacs o M-x elp-instrument-package org o M-x elp-instrument-function next-line o C-c a a to get an agenda o M-x elp-reset-all o Press "n" 11 times (I just went over all the items for today). o M-x elp-results --8<---cut here---end--->8--- and I get the following results: --8<---cut here---start->8--- org-agenda-next-line 11 0.012638 0.0011489090 org-agenda-do-context-action 11 0.007312 0.0006647272 org-display-outline-path 10 0.006614 0.0006614 next-line 11 0.005075 0.0004613636 org-get-outline-path 10 0.002875 0.0002875999 org-up-heading-safe 20 0.002387 0.0001193500 org-back-to-heading 20 0.000652 3.26e-05 org-format-outline-path 10 0.000316 3.16e-05 org-unhighlight 12 0.00023 1.916...e-05 org-outline-level 30 0.000179 5.966...e-06 org-add-props 10 7.199...e-05 7.199...e-06 org-get-at-bol11 6e-05 5.454...e-06 org-detach-overlay12 5.600...e-05 4.666...e-06 org-agenda-post-command-hook 12 4.199...e-05 3.499...e-06 --8<---cut here---end--->8--- Can you try this and let me know if it's not working the same way? Thanks, Nick PS Incidentally, note that in my case the next-line times account for about 40% of the org-agenda-next-line times: the other 60% is accounted for by org-agenda-do-context-action. In your original profile, the latter was insignificant: that's why I'd like to see the next-line results. I did exactly what you wrote and got this: org-agenda-next-line 11 0.156000 0.0141818181 next-line 11 0.156000 0.0141818181 org-detach-overlay13 0.0 0.0 org-agenda-post-command-hook 13 0.0 0.0 org-agenda-do-context-action 11 0.0 0.0 org-get-at-bol11 0.0 0.0 org-unhighlight 13 0.0 0.0 Thanks, Rainer ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: moving in the agenda view is slow
Rainer Stengele wrote: > I tried with pressing "n" step by step 10 times, so no leaning on the "n" key: > > org-agenda-next-line 10 > 0.313999 0.0314 > next-line 10 > 0.313999 0.0314 > org-detach-overlay12 0.0 > 0.0 > org-agenda-post-command-hook 12 0.0 > 0.0 > org-agenda-do-context-action 10 0.0 > 0.0 > org-get-at-bol10 0.0 > 0.0 > org-unhighlight 12 0.0 > 0.0 > font-lock-mode1 0.0 > 0.0 > font-lock-default-function1 0.0 > 0.0 > > > I see no change. Emacs is on Windows XP. > OK - next-line is indeed taking up all the time (but the exact equality and the 0.0 times make me wonder about the clock resolution on this platform and how reliable elp is here), so, unless there is some backdoor connection, these delays have nothing to do with org - it's emacs itself which is slow: 31ms per call is not as slow as it was yesterday, but it's still 25x what I see. Eric, do you encounter this problem on Emacs/Windows XP as well? Has anybody encountered this problem on anything *but* Emacs/Windows XP? Rainer, if you'd like to continue the exercise, maybe the thing to do is to profile functions that next-line calls and get another profile. The only other function that seems likely to take up time is line-move, so you might proceed like this: Set up a minimal emacs so that you don't have to retype everything over and over. Something like the following, where I assume you use org-install to initialize org - you'll also have to change the load-path and the list of org-agenda-files to suit your situation: --8<---cut here---start->8--- (add-to-list 'load-path "~/elisp/org-mode/lisp") (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode)) (require 'org-install) (require 'org-agenda) (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (global-set-key "\C-cr" 'elp-results) (elp-instrument-list '(org-agenda-next-line next-line line-move)) (setq org-agenda-files '("~/lib/org/work.org" "~/lib/org/home.org")) (org-agenda-list) (elp-reset-all) --8<---cut here---end--->8--- Save it in a file called minimal.emacs and then say emacs -Q --load minimal.emacs You should get an agenda - press "n" a dozen times, and then C-c r to get the results. You can add more functions to the list above (the next few candidates are line-move-partial, line-move-visual, line-move-1). Assuming that you get consistent results implicating these, I suspect that the thing to do is to post your findings in an emacs forum or open an emacs bug report. I haven't gone back to check your original emails, but is there a particular version of emacs that exhibits this problem? Is there a version that does *not* exhibit it? When exactly did you start noticing this behavior (relative to emacs updates etc)? Thanks, Nick ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: moving in the agenda view is slow
Nick Dokos writes: [...] > I just tried the following sequence: > > o Start a new emacs > o M-x elp-instrument-package org > o M-x elp-instrument-function next-line > o C-c a a to get an agenda > o M-x elp-reset-all > o Press "n" 11 times (I just went over all the items for today). > o M-x elp-results > > and I get the following results: > > org-agenda-next-line 11 0.012638 0.0011489090 > org-agenda-do-context-action 11 0.007312 0.0006647272 > org-display-outline-path 10 0.006614 0.0006614 > next-line11 0.005075 0.0004613636 > org-get-outline-path 10 0.002875 0.0002875999 > org-up-heading-safe 20 0.002387 0.0001193500 > org-back-to-heading 20 0.000652 3.26e-05 > org-format-outline-path 10 0.000316 3.16e-05 > org-unhighlight 12 0.00023 1.916...e-05 > org-outline-level30 0.000179 5.966...e-06 > org-add-props10 7.199...e-05 7.199...e-06 > org-get-at-bol 11 6e-05 5.454...e-06 > org-detach-overlay 12 5.600...e-05 4.666...e-06 > org-agenda-post-command-hook 12 4.199...e-05 3.499...e-06 > > Can you try this and let me know if it's not working the same way? Okay, here are mine for 11 presses of the n command: --8<---cut here---start->8--- org-agenda-next-line 11 0.063334 0.0057576363 next-line11 0.033 0.003 org-agenda-do-context-action 11 0.030161 0.002741 org-display-outline-path 11 0.029602 0.0026910909 org-get-outline-path 11 0.023259 0.0021144545 org-up-heading-safe 44 0.022231 0.0005052727 org-back-to-heading 44 0.000716 1.629...e-05 org-format-outline-path 11 0.000484 4.409...e-05 org-outline-level77 0.000479 6.220...e-06 org-unhighlight 15 0.000189 1.266...e-05 org-add-props33 9.399...e-05 2.848...e-06 org-agenda-post-command-hook 15 4.499...e-05 2.999...e-06 org-get-at-bol 11 3.9e-05 3.545...e-06 org-detach-overlay 15 3.4e-05 2.266...e-06 --8<---cut here---end--->8--- I'm not sure what conclusions to draw from here (but, again, this is on my home system which seems much faster than my office system despite being a slower computer with less memory etc). > PS Incidentally, note that in my case the next-line times account for > about 40% of the org-agenda-next-line times: the other 60% is accounted > for by org-agenda-do-context-action. In your original profile, the latter > was insignificant: that's why I'd like to see the next-line results. And in mine, next-line is >50% of the time with the remainder being org-agenda-do-context-action. What does this mean? In any case, I will try all of this on Tuesday on my office system. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.3 (release_7.3.148.gc3b7e) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: moving in the agenda view is slow
Rainer Stengele wrote: > Am 28.11.2010 01:30, schrieb Nick Dokos: > > Rainer Stengele wrote: > > > >> Am 27.11.2010 20:23, schrieb Nick Dokos: > >>> ... > >>> Can you do M-x elp-instrument-function next-line and > >>> get another profile? > >>> > >> ok, I did, getting > >> > >> org-agenda-next-line 10 > >>0.864912 0.0864912 > >> org-unhighlight 14 > >>0.000875 6.257...e-05 > >> org-detach-overlay14 > >>0.000622 4.449...e-05 > >> org-agenda-do-context-action 10 > >>0.000274 2.74e-05 > >> org-get-at-bol10 > >>9.400...e-05 9.400...e-06 > >> org-agenda-post-command-hook 14 > >>7.5e-05 5.357...e-06 > >> > >> for 10 "next-lines", all in the agenda block of > >> > >> Monday 29 November 2010 W48 > >> > >> which means there is no date crossing. > >> What can I do to detail org-agenda-next-line? > >> > > Apparently, you didn't read my mail carefully enough: see above. > > > > Nick > Nick, > > sorry if I misunderstand, I tried again and get this: > > which probably is not what we expect to see? > What I do is: > being in the agenda I enter > M-x elp-instrument-function next-line > then enter "n" once and get: > > next-line 1 0.016 0.016 > > Thats really all I get. No more line than this one. > I just tried the following sequence: --8<---cut here---start->8--- o Start a new emacs o M-x elp-instrument-package org o M-x elp-instrument-function next-line o C-c a a to get an agenda o M-x elp-reset-all o Press "n" 11 times (I just went over all the items for today). o M-x elp-results --8<---cut here---end--->8--- and I get the following results: --8<---cut here---start->8--- org-agenda-next-line 11 0.012638 0.0011489090 org-agenda-do-context-action 11 0.007312 0.0006647272 org-display-outline-path 10 0.006614 0.0006614 next-line 11 0.005075 0.0004613636 org-get-outline-path 10 0.002875 0.0002875999 org-up-heading-safe 20 0.002387 0.0001193500 org-back-to-heading 20 0.000652 3.26e-05 org-format-outline-path 10 0.000316 3.16e-05 org-unhighlight 12 0.00023 1.916...e-05 org-outline-level 30 0.000179 5.966...e-06 org-add-props 10 7.199...e-05 7.199...e-06 org-get-at-bol11 6e-05 5.454...e-06 org-detach-overlay12 5.600...e-05 4.666...e-06 org-agenda-post-command-hook 12 4.199...e-05 3.499...e-06 --8<---cut here---end--->8--- Can you try this and let me know if it's not working the same way? Thanks, Nick PS Incidentally, note that in my case the next-line times account for about 40% of the org-agenda-next-line times: the other 60% is accounted for by org-agenda-do-context-action. In your original profile, the latter was insignificant: that's why I'd like to see the next-line results. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: moving in the agenda view is slow
Am 28.11.2010 20:29, schrieb Nick Dokos: Eric S Fraga wrote: I generate results for a number (looks like 99 times from the results) Looks like 129 times from the results below. of 'n' moves through my agenda, including going through a few days from today forwards. I get the following: , | org-agenda-later 4 2.319228 0.579807 | org-agenda-redo 4 2.319001 0.57975025 | org-agenda-list 5 1.907568 0.3815136 | org-agenda-get-day-entries 99 1.708234 0.017254 | org-agenda-to-appt 4 1.170569 0.29264225 | org-agenda 1 1.161838 1.161838 | org-let 4 1.145839 0.28645975 | org-agenda-get-scheduled 99 0.875935 0.0088478282 | org-prepare-agenda 5 0.866513 0.1733026000 | org-prepare-agenda-buffers 9 0.721267 0.080140 | org-agenda-next-line 129 0.645353 0.0050027441 ` Are you leaning on the "n" key? It's probably better to press it a given number of times instead. Or is it the case that the delay you and Rainer see *only* exhibits itself on auto-repeat? If the latter, then it might very well be the case that X is the culprit (or the emacs display engine or who knows what else). The org-agenda-next-line time per call is about 4x what I get on my system (where I have not seen the problem), so I assume that you will also probably get the 50x (or so) slowdown on your office system that Rainer got. Now, this is on my home system on which the response is actually perfectly fine! It is on my work system where the response is slow so I will repeat this on Tuesday if I get a chance. My home machine is actually slower than my office system *but* my office system is using a less effective X window system graphics driver so the current view that font-locking may have something to do with the problem could be consistent with this. Actually, I'm not sure it has anything to do with font-lock: I got some font-lock results in my initial profile (for unknown reasons - I hadn't added font-lock to the elp list afaik, but I may have done something stupid), and Manuel Hermenegildo chimed in with a problem that he has had for a while: there is a suspected font-lock connection there and Manuel posted a workaround for this problem[fn:1], but afaik this problem is not related to that one. The main thing to check in this problem case is whether the time that org-agenda-next-line takes is roughly the same as the time that next-line itself takes. There is somewhat indirect evidence that that is the case, but we need to make sure. I asked Rainer to add next-line to the elp list with M-x elp-instrument-function next-line, but I haven't heard any results yet. Thanks, Nick Footnotes: [fn:1] I don't remember who posted the workaround originally and haven't gone back to check. Nick, I tried with pressing "n" step by step 10 times, so no leaning on the "n" key: org-agenda-next-line 10 0.313999 0.0314 next-line 10 0.313999 0.0314 org-detach-overlay12 0.0 0.0 org-agenda-post-command-hook 12 0.0 0.0 org-agenda-do-context-action 10 0.0 0.0 org-get-at-bol10 0.0 0.0 org-unhighlight 12 0.0 0.0 font-lock-mode1 0.0 0.0 font-lock-default-function1 0.0 0.0 I see no change. Emacs is on Windows XP. Rainer ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: moving in the agenda view is slow
Eric S Fraga wrote: > I generate results for a number (looks like 99 times from the results) Looks like 129 times from the results below. > of 'n' moves through my agenda, including going through a few days from > today forwards. I get the following: > > , > | org-agenda-later 4 2.319228 0.579807 > | org-agenda-redo 4 2.319001 0.57975025 > | org-agenda-list 5 1.907568 0.3815136 > | org-agenda-get-day-entries 99 1.708234 0.017254 > | org-agenda-to-appt 4 1.170569 0.29264225 > | org-agenda 1 1.161838 1.161838 > | org-let 4 1.145839 0.28645975 > | org-agenda-get-scheduled 99 0.875935 0.0088478282 > | org-prepare-agenda 5 0.866513 0.1733026000 > | org-prepare-agenda-buffers 9 0.721267 0.080140 > | org-agenda-next-line 129 0.645353 0.0050027441 > ` > Are you leaning on the "n" key? It's probably better to press it a given number of times instead. Or is it the case that the delay you and Rainer see *only* exhibits itself on auto-repeat? If the latter, then it might very well be the case that X is the culprit (or the emacs display engine or who knows what else). The org-agenda-next-line time per call is about 4x what I get on my system (where I have not seen the problem), so I assume that you will also probably get the 50x (or so) slowdown on your office system that Rainer got. > Now, this is on my home system on which the response is actually > perfectly fine! It is on my work system where the response is slow so I > will repeat this on Tuesday if I get a chance. My home machine is > actually slower than my office system *but* my office system is using a > less effective X window system graphics driver so the current view that > font-locking may have something to do with the problem could be > consistent with this. > Actually, I'm not sure it has anything to do with font-lock: I got some font-lock results in my initial profile (for unknown reasons - I hadn't added font-lock to the elp list afaik, but I may have done something stupid), and Manuel Hermenegildo chimed in with a problem that he has had for a while: there is a suspected font-lock connection there and Manuel posted a workaround for this problem[fn:1], but afaik this problem is not related to that one. The main thing to check in this problem case is whether the time that org-agenda-next-line takes is roughly the same as the time that next-line itself takes. There is somewhat indirect evidence that that is the case, but we need to make sure. I asked Rainer to add next-line to the elp list with M-x elp-instrument-function next-line , but I haven't heard any results yet. Thanks, Nick Footnotes: [fn:1] I don't remember who posted the workaround originally and haven't gone back to check. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: moving in the agenda view is slow
Am 28.11.2010 01:30, schrieb Nick Dokos: Rainer Stengele wrote: Am 27.11.2010 20:23, schrieb Nick Dokos: ... Can you do M-x elp-instrument-function next-line and get another profile? ok, I did, getting org-agenda-next-line 10 0.864912 0.0864912 org-unhighlight 14 0.000875 6.257...e-05 org-detach-overlay14 0.000622 4.449...e-05 org-agenda-do-context-action 10 0.000274 2.74e-05 org-get-at-bol10 9.400...e-05 9.400...e-06 org-agenda-post-command-hook 14 7.5e-05 5.357...e-06 for 10 "next-lines", all in the agenda block of Monday 29 November 2010 W48 which means there is no date crossing. What can I do to detail org-agenda-next-line? Apparently, you didn't read my mail carefully enough: see above. Nick Nick, sorry if I misunderstand, I tried again and get this: which probably is not what we expect to see? What I do is: being in the agenda I enter M-x elp-instrument-function next-line then enter "n" once and get: next-line 1 0.016 0.016 Thats really all I get. No more line than this one. Rainer ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: moving in the agenda view is slow
I generate results for a number (looks like 99 times from the results) of 'n' moves through my agenda, including going through a few days from today forwards. I get the following: , | org-agenda-later 4 2.319228 0.579807 | org-agenda-redo 4 2.319001 0.57975025 | org-agenda-list 5 1.907568 0.3815136 | org-agenda-get-day-entries 99 1.708234 0.017254 | org-agenda-to-appt 4 1.170569 0.29264225 | org-agenda 1 1.161838 1.161838 | org-let 4 1.145839 0.28645975 | org-agenda-get-scheduled 99 0.875935 0.0088478282 | org-prepare-agenda 5 0.866513 0.1733026000 | org-prepare-agenda-buffers 9 0.721267 0.080140 | org-agenda-next-line 129 0.645353 0.0050027441 ` Now, this is on my home system on which the response is actually perfectly fine! It is on my work system where the response is slow so I will repeat this on Tuesday if I get a chance. My home machine is actually slower than my office system *but* my office system is using a less effective X window system graphics driver so the current view that font-locking may have something to do with the problem could be consistent with this. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.3 (release_7.3.148.gc3b7e) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: moving in the agenda view is slow
Rainer Stengele wrote: > Am 27.11.2010 20:23, schrieb Nick Dokos: > > ... > > Can you do M-x elp-instrument-function next-line and > > get another profile? > > > ok, I did, getting > > org-agenda-next-line 10 > 0.864912 0.0864912 > org-unhighlight 14 > 0.000875 6.257...e-05 > org-detach-overlay14 > 0.000622 4.449...e-05 > org-agenda-do-context-action 10 > 0.000274 2.74e-05 > org-get-at-bol10 > 9.400...e-05 9.400...e-06 > org-agenda-post-command-hook 14 > 7.5e-05 5.357...e-06 > > for 10 "next-lines", all in the agenda block of > > Monday 29 November 2010 W48 > > which means there is no date crossing. > What can I do to detail org-agenda-next-line? > Apparently, you didn't read my mail carefully enough: see above. Nick ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: moving in the agenda view is slow
Am 27.11.2010 20:23, schrieb Nick Dokos: > Rainer Stengele wrote: > >> Nick, elp-reset-all does not work. > > Some more detail would be helpful: in what way does it not work? > > If I do > > M-x elp-reset-all > M-x elp-results > > I get a blank slate. Then I can press 10 "n", and do M-x elp-results > and get > > org-agenda-list 1 > 0.542113 0.542113 > org-agenda-get-day-entries105 > 0.296363 0.0028225142 > org-agenda-get-scheduled 105 > 0.173385 0.0016512952 > org-agenda-files 3 > 0.163354 0.054451 > org-time-string-to-absolute 833 > 0.129597 0.0001555798 > org-parse-time-string 847 > 0.110073 0.0001299574 > org-prepare-agenda1 > 0.055021 0.055021 > org-agenda-get-timestamps 105 > 0.050603 0.0004819428 > org-prepare-agenda-buffers1 > 0.049225 0.049225 > org-refresh-category-properties 15 > 0.030431 0.0020287333 > org-agenda-get-sexps 105 > 0.02591 0.0002467619 > org-agenda-get-deadlines 105 > 0.017842 0.0001699238 > org-diary-sexp-entry 14 > 0.013668 0.0009762857 > org-agenda-get-blocks 105 > 0.012985 0.000123 > org-agenda-next-line 10 > 0.012237 0.0012237 > org-closest-date 196 > 0.010801 5.511...e-05 > org-finalize-agenda 1 > 0.009044 0.009044 > org-up-heading-safe 95 > 0.008690 9.148...e-05 > org-agenda-do-context-action 10 > 0.008677 0.0008677000 > org-display-outline-path 10 > 0.007925 0.0007925 > ... > > reflecting the stats from the last reset onwards. What do you get? > >> Reason for "42" calls is I simply leave my finger on the key for a while >> ... just to see the result more clear: > > Hmm, I'd prefer a more controlled experiment: it would be better to > press it say 10 times discretely. I wonder also if crossing from one > date to the next affects things (in my case, it does not). > >> >> org-agenda-next-line 42 >> 2.837738 0.0675651904 > > Be that as it may, you get 67.5ms per call to org-agenda-next-line > and I get 1.22ms, roughly a factor of 50. > > Can you do M-x elp-instrument-function next-line and > get another profile? > > Thanks, > Nick > > > ___ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > ok, I did, getting org-agenda-next-line 10 0.864912 0.0864912 org-unhighlight 14 0.000875 6.257...e-05 org-detach-overlay14 0.000622 4.449...e-05 org-agenda-do-context-action 10 0.000274 2.74e-05 org-get-at-bol10 9.400...e-05 9.400...e-06 org-agenda-post-command-hook 14 7.5e-05 5.357...e-06 for 10 "next-lines", all in the agenda block of Monday 29 November 2010 W48 which means there is no date crossing. What can I do to detail org-agenda-next-line? What can I do Rainer ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: moving in the agenda view is slow
Rainer Stengele wrote: > Nick, elp-reset-all does not work. Some more detail would be helpful: in what way does it not work? If I do M-x elp-reset-all M-x elp-results I get a blank slate. Then I can press 10 "n", and do M-x elp-results and get org-agenda-list 1 0.542113 0.542113 org-agenda-get-day-entries105 0.296363 0.0028225142 org-agenda-get-scheduled 105 0.173385 0.0016512952 org-agenda-files 3 0.163354 0.054451 org-time-string-to-absolute 833 0.129597 0.0001555798 org-parse-time-string 847 0.110073 0.0001299574 org-prepare-agenda1 0.055021 0.055021 org-agenda-get-timestamps 105 0.050603 0.0004819428 org-prepare-agenda-buffers1 0.049225 0.049225 org-refresh-category-properties 15 0.030431 0.0020287333 org-agenda-get-sexps 105 0.02591 0.0002467619 org-agenda-get-deadlines 105 0.017842 0.0001699238 org-diary-sexp-entry 14 0.013668 0.0009762857 org-agenda-get-blocks 105 0.012985 0.000123 org-agenda-next-line 10 0.012237 0.0012237 org-closest-date 196 0.010801 5.511...e-05 org-finalize-agenda 1 0.009044 0.009044 org-up-heading-safe 95 0.008690 9.148...e-05 org-agenda-do-context-action 10 0.008677 0.0008677000 org-display-outline-path 10 0.007925 0.0007925 ... reflecting the stats from the last reset onwards. What do you get? > Reason for "42" calls is I simply leave my finger on the key for a while > ... just to see the result more clear: Hmm, I'd prefer a more controlled experiment: it would be better to press it say 10 times discretely. I wonder also if crossing from one date to the next affects things (in my case, it does not). > > org-agenda-next-line 42 > 2.837738 0.0675651904 Be that as it may, you get 67.5ms per call to org-agenda-next-line and I get 1.22ms, roughly a factor of 50. Can you do M-x elp-instrument-function next-line and get another profile? Thanks, Nick ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: moving in the agenda view is slow
Am 27.11.2010 18:00, schrieb Nick Dokos: > Rainer Stengele wrote: > >> What I did: >> open the agenda view >> >> M-x elp-instrument-package org > several "n"s - delays are there - same on linux (V23.2.1) and windows emacs >> M-x elp-results >> >> >> org-agenda-next-line 79 >> 4.004141 0.0506853291 >> org-agenda-do-context-action 79 >> 0.001360 1.722...e-05 >> org-unhighlight 81 >> 0.000917 1.132...e-05 >> org-get-at-bol79 >> 0.000473 5.987...e-06 >> org-detach-overlay81 >> 0.000268 3.320...e-06 >> org-agenda-post-command-hook 81 >> 0.000244 3.024...e-06 >> >> strange, why do I not get more details? > > Why are there 79 calls to org-agenda-next-line? AFAIK, there should be > just one for each "n" pressed. Maybe do M-x elp-reset-all, then press > "n", and M-x elp-results? > > The thing is that org-agenda-next-line is very simple: > > , > | (defun org-agenda-next-line () > | "Move cursor to the next line, and show if follow mode is active." > | (interactive) > | (call-interactively 'next-line) > | (org-agenda-do-context-action)) > ` > > and the calls to org-agend-do-context-action don't amount to much, so > essentially all of the time must be spent in the (call-interactively > 'next-line). > > Maybe M-x elp-instrument-function next-line will give some > more clues. I assume call-interactively cannot be instrumented by elp > since it's in C. > > Nick > > > ___ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > Nick, elp-reset-all does not work. Reason for "42" calls is I simply leave my finger on the key for a while ... just to see the result more clear: org-agenda-next-line 42 2.837738 0.0675651904 org-agenda-do-context-action 42 0.000735 1.75e-05 org-unhighlight 44 0.000494 1.122...e-05 org-get-at-bol42 0.000263 6.261...e-06 org-detach-overlay44 0.000141 3.204...e-06 org-agenda-post-command-hook 44 0.000132 3.000...e-06 Rainer ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: moving in the agenda view is slow
Am 26.11.2010 22:28, schrieb Markus Heller: > Martin Stemplinger writes: > >> Hallo Rainer Stengele, >> >> am 26.11.2010 schriebst Du: >> >>> Hi all, >>> >>> I am struggling more and more with slowness in my agenda view. >>> Moving from line to line with n and p is slow. >>> Pressing the n key for 2 seconds will result in the cursor not following >>> every keypress >>> but jumping down after 2 or 3 seconds. >>> >>> I switched off all minor modes and found no improvements. >>> What is the agenda doing when I am moving from item to item? >>> Follow-mode is off. >>> >>> I use about 10 org files with a total of 35.000 lines. >>> The slowness is true for customized agenda views as well as for default >>> ones like "C-a t" >>> (List of all todo entries). >>> >>> GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-11-04 on >>> LENNART-69DE564 (patched) >>> Org-mode version 7.3 (release_7.3.157.ga98a) >>> >>> Rainer >> >> Maybe it's something completely different but I found org-mode to be >> ridicilous slow when the org-files were under git version control. No >> idea when this started and why it happened. > > I've had a similar issue. Somebody here suggested to put the line below > in my .emacs, which helped. But beware, this disables the vc backend of > emacs completely, so you'll have to run git manually. > > Here is the line: > > ;; no vc-git > (setq vc-handled-backends nil) > > > HTH > Markus > > > ___ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > ok i tried this, no effect. Rainer ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: moving in the agenda view is slow
Martin Stemplinger writes: > Hallo Rainer Stengele, > > am 26.11.2010 schriebst Du: > >> Hi all, >> >> I am struggling more and more with slowness in my agenda view. >> Moving from line to line with n and p is slow. >> Pressing the n key for 2 seconds will result in the cursor not following >> every keypress >> but jumping down after 2 or 3 seconds. >> >> I switched off all minor modes and found no improvements. >> What is the agenda doing when I am moving from item to item? >> Follow-mode is off. >> >> I use about 10 org files with a total of 35.000 lines. >> The slowness is true for customized agenda views as well as for default ones >> like "C-a t" >> (List of all todo entries). >> >> GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-11-04 on LENNART-69DE564 >> (patched) >> Org-mode version 7.3 (release_7.3.157.ga98a) >> >> Rainer > > Maybe it's something completely different but I found org-mode to be > ridicilous slow when the org-files were under git version control. No > idea when this started and why it happened. I've had a similar issue. Somebody here suggested to put the line below in my .emacs, which helped. But beware, this disables the vc backend of emacs completely, so you'll have to run git manually. Here is the line: ;; no vc-git (setq vc-handled-backends nil) HTH Markus ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode