all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Michael Welle <mwe012008@gmx.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Performance problem
Date: Mon, 23 May 2011 19:33:31 +0100	[thread overview]
Message-ID: <87zkmdp8qs.fsf@ucl.ac.uk> (raw)
In-Reply-To: <en0qa8x77i.ln2@news.c0t0d0s0.de> (Michael Welle's message of "Mon, 23 May 2011 14:32:14 +0200")

Michael Welle <mwe012008@gmx.net> writes:

> Hi,
>
> Matt Lundin <mdl@imapmail.org> writes:
>
>> Michael Welle <mwe012008@gmx.net> writes:
>>
>>> I use Emacs 23.2.1 and org-mode 7.5. After some time, usually after a
>>> few days of 'uptime', building an agenda becomes very sloooow. 
>>
>> Is this the standard agenda or a custom agenda?
> it's a custom agenda that collects all appointments for the next four
> weeks:
>
>        ( "z" "Appointments for the next four weeks" agenda ""
>         ((org-agenda-skip-function
>           (lambda nil
>         (org-agenda-skip-entry-if 'nottodo '("APPT"))))
>          (org-agenda-ndays 28)
>          (org-agenda-include-diary nil )))
>
>
>>> I expect the agenda built from 120 org file to show up within five
>>> seconds. 
>>
>> Five seconds still seems like a long time. How many lines are in your
>> agenda? Are your org buffers already open when you call it? Or have you
>> closed your org buffers by typing "x" in the agenda?
> OK, five seconds is an upper boundary, it might take more like three
> seconds or so. I count twentyone, twentytwo, ... to 'measure' the
> duration of the operation. With this higly accurate method I can't
> observe much difference if I started with loaded org files or not.

Well, for me, a monthly view (equivalent to your 4 week view?)
takes well over 5 seconds at best of times:

--8<---------------cut here---------------start------------->8---
org-agenda-list                                               2           19.049079     9.5245395
org-agenda-view-mode-dispatch                                 1           18.791959     18.791959
org-agenda-month-view                                         1           18.529849     18.529849
org-agenda-change-time-span                                   1           18.529803     18.529803
org-agenda-redo                                               1           18.528674     18.528674
org-agenda-get-day-entries                                    462         18.115907999  0.0392119220
org-let                                                       1           17.600798     17.600798
org-agenda-get-scheduled                                      462         9.5824770000  0.0207412922
org-get-todo-state                                            12382       6.0307460000  0.0004870575
org-back-to-heading                                           13407       4.3458889999  0.0003241507
org-agenda-get-timestamps                                     462         3.3732049999  0.0073013095
org-agenda-get-deadlines                                      462         2.6114349999  0.0056524567
org-agenda-skip                                               13809       1.8835389999  0.0001363993
org-time-string-to-absolute                                   11880       1.5394879999  0.0001295865
org-agenda-get-blocks                                         462         1.4670860000  0.0031755108
org-prepare-agenda                                            2           1.2731379999  0.6365689999
--8<---------------cut here---------------end--------------->8---

but this is on a netbook...:

,----
| processor	: 0
| vendor_id	: GenuineIntel
| cpu family	: 6
| model		: 28
| model name	: Intel(R) Atom(TM) CPU N450   @ 1.66GHz
| stepping	: 10
| cpu MHz		: 1667.000
| cache size	: 512 KB
| physical id	: 0
| siblings	: 2
`----

this explains why I don't use a monthly view very often... ;-)

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.288.gcec8)

  parent reply	other threads:[~2011-05-23 19:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-23  7:30 Performance problem Michael Welle
2011-05-23 11:50 ` Matt Lundin
2011-05-23 12:32   ` Michael Welle
2011-05-23 17:20     ` Michael Welle
2011-05-23 18:33     ` Eric S Fraga [this message]
2011-05-23 19:26       ` Michael Welle
2011-05-24 12:47     ` Matt Lundin

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

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

  git send-email \
    --in-reply-to=87zkmdp8qs.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=mwe012008@gmx.net \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.