From: Tassilo Horn <tsdh@gnu.org>
To: emacs-orgmode@gnu.org
Subject: Re: Bug: #+STARTUP: overview and org-startup-folded have no effect [7.9.3e (7.9.3e-1032-g791a8d @ /home/horn/Repos/el/org-mode/lisp/)]
Date: Thu, 14 Feb 2013 12:31:04 +0100 [thread overview]
Message-ID: <87ehgjgmiv.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: 87vc9vdwx7.fsf@bzg.ath.cx
Bastien <bzg@altern.org> writes:
>> I have seven agenda files, all not too big (~10K on average), and I
>> use an averagely performant computer (5 years old dual core laptop).
>> For me, the difference between `org-agenda-inhibit-startup' set to t
>> or nil is not noticable at all. In both cases, it's less than a
>> second, and that's a time I can easily live with.
>
> It really depends on what your agenda views are.
>
> The real test is this: create a 50K file with folded one headline and
> many second level TODO entries.
Ok, the testfile looks like
--8<---------------cut here---------------start------------->8---
* The folded top-level headline
** TODO Some test todo headline 0
- also some contents
** TODO Some test todo headline 1
- also some contents
--8<---------------cut here---------------end--------------->8---
and has 2000 such subheadlines. File size is 127K.
`org-startup-folded' is t.
> Then have an agenda view search for those TODO items. Do you get the
> same difference in this case?
It takes approximately 9-10 seconds to build a TODO agenda (C-c o a t),
no matter if `org-agenda-inhibit-startup' is t or nil. The week agenda
takes less than a second with both settings. Before each agenda
invocation, I've deleted all org buffers of course.
I must admit I didn't really profile but just counted in my mind. But I
did it several times, so it's super-scientific and you should trust me.
;-)
So now I've increased the number of subentries to 8000 resulting in a
file size of 492K, and I've used a stop-watch for measuring.
| org-agenda-inhibit-startup | time TODO agenda | time week agenda |
|----------------------------+------------------+------------------|
| nil | 2min1sec | 1sec / 9sec |
| t | 2min18sec | 1sec / 29sec |
I've performed these tests several times. The times with respect to
TODO agenda creation were pretty much consistent. However, the times
with respect to week agenda creation were usually around 1 second, but
there were some strange outliers I have no explanation for (the 9 and
the 29 seconds one).
But in any case, if there was a noticable difference, the
"org-agenda-inhibit-startup set to nil"-version was even faster than the
"optimized" version.
Bye,
Tassilo
next prev parent reply other threads:[~2013-02-14 11:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-14 9:08 Bug: #+STARTUP: overview and org-startup-folded have no effect [7.9.3e (7.9.3e-1032-g791a8d @ /home/horn/Repos/el/org-mode/lisp/)] Tassilo Horn
2013-02-14 9:12 ` Sebastien Vauban
2013-02-14 9:23 ` Bastien
2013-02-14 18:42 ` Tassilo Horn
2013-02-14 9:24 ` Tassilo Horn
2013-02-14 9:42 ` Bastien
2013-02-14 10:05 ` Tassilo Horn
2013-02-14 10:14 ` Bastien
2013-02-14 11:31 ` Tassilo Horn [this message]
2013-03-06 9:26 ` Bastien
2013-03-06 10:13 ` Tassilo Horn
2013-02-14 9:19 ` Tassilo Horn
2013-02-14 10:00 ` Bastien
2013-02-14 10:18 ` Tassilo Horn
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=87ehgjgmiv.fsf@thinkpad.tsdh.de \
--to=tsdh@gnu.org \
--cc=emacs-orgmode@gnu.org \
/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.