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

Am 27.11.2010 20:23, schrieb Nick Dokos:
> Rainer Stengele <rainer.stengele@online.de> 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-entries                                    105         0.2963639999  0.0028225142
> org-agenda-get-scheduled                                      105         0.1733859999  0.0016512952
> org-agenda-files                                              3           0.163354      0.0544513333
> org-time-string-to-absolute                                   833         0.1295979999  0.0001555798
> org-parse-time-string                                         847         0.1100739999  0.0001299574
> org-prepare-agenda                                            1           0.055021      0.055021
> org-agenda-get-timestamps                                     105         0.0506039999  0.0004819428
> org-prepare-agenda-buffers                                    1           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.0178420000  0.0001699238
> org-diary-sexp-entry                                          14          0.0136680000  0.0009762857
> org-agenda-get-blocks                                         105         0.0129850000  0.0001236666
> org-agenda-next-line                                          10          0.0122370000  0.0012237
> org-closest-date                                              196         0.0108019999  5.511...e-05
> org-finalize-agenda                                           1           0.009044      0.009044
> org-up-heading-safe                                           95          0.0086909999  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 <RET> next-line <RET> 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.0008759999  6.257...e-05
org-detach-overlay                                            14
  0.0006229999  4.449...e-05
org-agenda-do-context-action                                  10
  0.000274      2.74e-05
org-get-at-bol                                                10
  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

  reply	other threads:[~2010-11-27 21:11 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 [this message]
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
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=4CF1740B.6030405@online.de \
    --to=rainer.stengele@online.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    --cc=rainer.stengele@diplan.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).