emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rainer Stengele <rainer.stengele@diplan.de>
To: nicholas.dokos@hp.com
Cc: emacs-orgmode@gnu.org, Eric S Fraga <ucecesf@ucl.ac.uk>,
	Rainer Stengele <rainer.stengele@online.de>
Subject: Re: moving in the agenda view is slow
Date: Sun, 28 Nov 2010 20:40:00 +0100	[thread overview]
Message-ID: <4CF2B010.9040904@diplan.de> (raw)
In-Reply-To: <25801.1290972566@gamaville.dokosmarshall.org>

Am 28.11.2010 20:29, schrieb Nick Dokos:
> Eric S Fraga<ucecesf@ucl.ac.uk>  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.7082340000  0.0172548888
>> | 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.8759350000  0.0088478282
>> | org-prepare-agenda                   5           0.8665130000  0.1733026000
>> | org-prepare-agenda-buffers           9           0.721267      0.0801407777
>> | org-agenda-next-line                 129         0.6453539999  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<RET>  next-line<RET>, 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.3139999999  0.0314
next-line                                                     10          0.3139999999  0.0314
org-detach-overlay                                            12          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-bol                                                10          0.0           0.0
org-unhighlight                                               12          0.0           0.0
font-lock-mode                                                1           0.0           0.0
font-lock-default-function                                    1           0.0           0.0


I see no change. Emacs is on Windows XP.

Rainer

  reply	other threads:[~2010-11-28 19:40 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-26 16:26 moving in the agenda view is slow Rainer Stengele
2010-11-26 16:46 ` Carsten Dominik
2010-11-26 18:20   ` org-mode gnus integration across two machines when using nnimap Tommy Kelly
2010-11-26 18:35     ` Dan Christensen
2010-11-26 18:53       ` Tommy Kelly
2010-11-26 19:40         ` Dan Christensen
2010-12-14 23:07           ` Ted Zlatanov
2010-12-01 18:41     ` e20100633
2010-12-01 22:55       ` [Orgmode] " Eric S Fraga
2010-12-01 23:44         ` e20100633
2010-12-02  1:32         ` Bernt Hansen
2010-12-02  7:24           ` e20100633
2010-12-02  1:55         ` Greg Troxel
2010-12-02  2:58           ` Matt Lundin
2010-11-26 20:15 ` moving in the agenda view is slow Martin Stemplinger
2010-11-26 21:28   ` Markus Heller
2010-11-27 11:31     ` Rainer Stengele
2010-11-26 23:04 ` Eric S Fraga
2010-11-26 23:08   ` Carsten Dominik
2010-11-27  2:53   ` Nick Dokos
2010-11-27  7:09     ` Manuel Hermenegildo
2010-11-27 11:22       ` Rainer Stengele
2010-11-27 11:21     ` Rainer Stengele
2010-11-27 17:00       ` Nick Dokos
2010-11-27 18:25         ` Rainer Stengele
2010-11-27 19:23           ` Nick Dokos
2010-11-27 21:11             ` Rainer Stengele
2010-11-28  0:30               ` Nick Dokos
2010-11-28 18:38                 ` Rainer Stengele
2010-11-28 20:01                   ` Nick Dokos
2010-11-28 20:17                     ` Eric S Fraga
2010-11-28 22:11                       ` Nick Dokos
2010-11-30 12:28                       ` Eric S Fraga
2010-11-28 21:41                     ` Rainer Stengele
2010-12-15 11:47                     ` Eric S Fraga
2010-11-28 17:37               ` Eric S Fraga
2010-11-28 19:29                 ` Nick Dokos
2010-11-28 19:40                   ` Rainer Stengele [this message]
2010-11-28 21:32                     ` Nick Dokos
2010-11-28 22:12                       ` Eric S Fraga
2010-11-28 22:31                         ` Nick Dokos
2010-11-29  8:53                           ` Rainer Stengele
2010-11-29 10:51                       ` Rainer Stengele
2010-11-29 15:56                         ` Nick Dokos
2010-11-29 16:15                         ` Sébastien Vauban
2010-11-30 12:30                           ` Eric S Fraga
2010-12-01 14:18                             ` Carsten Dominik
2010-12-01 15:11                           ` moving in the agenda view is slow: solved! Rainer Stengele
2010-12-01 15:19                             ` Carsten Dominik
2010-12-01 17:30                             ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CF2B010.9040904@diplan.de \
    --to=rainer.stengele@diplan.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    --cc=rainer.stengele@online.de \
    --cc=ucecesf@ucl.ac.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).