Re: [Orgmode] Re: moving in the agenda view is slow

2010-12-15 Thread Eric S Fraga
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


Re: [Orgmode] Re: moving in the agenda view is slow

2010-12-01 Thread Carsten Dominik


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


Re: [Orgmode] Re: moving in the agenda view is slow

2010-12-01 Thread Eric S Fraga
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

2010-12-01 Thread Eric S Fraga
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


Re: [Orgmode] Re: moving in the agenda view is slow

2010-11-29 Thread Nick Dokos
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


Re: [Orgmode] Re: moving in the agenda view is slow

2010-11-29 Thread Rainer Stengele
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

2010-11-28 Thread 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

___
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

2010-11-28 Thread Nick Dokos
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


Re: [Orgmode] Re: moving in the agenda view is slow

2010-11-28 Thread Eric S Fraga
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

2010-11-28 Thread 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.


___
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

2010-11-28 Thread Rainer Stengele

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


Re: [Orgmode] Re: moving in the agenda view is slow

2010-11-27 Thread 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

___
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