From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Opening (for the first time) a 10-line Org doc takes 4 seconds
Date: Wed, 19 Dec 2012 10:05:53 +0100 [thread overview]
Message-ID: <80a9tafm32.fsf@somewhere.org> (raw)
In-Reply-To: 87obhrrl44.fsf@bzg.ath.cx
Hi Bastien,
Bastien wrote:
> "Sebastien Vauban" writes:
>
>> (if (locate-library "org-loaddefs")
>> (require 'org-loaddefs)
> ^^^^^^^^^^^^^
>
> You don't need this, there is (load "org-loaddefs.el" t t) in org.el.
OK. And `org.el' is loaded[1] because of the major-mode association to the
`.org' files, then, right?
Anyway, that does not have impacts here.
> Are your org elisp files compiled?
Nope. Never.
> What results do you have without the advice on `require'?
I've now ran 5 tests with each config:
| without advice | with advice |
|----------------+-------------|
| 3.78 | 3.95 |
| 3.73 | 3.86 |
| 3.76 | 3.83 |
| 3.80 | 3.83 |
| 3.81 | 3.94 |
|----------------+-------------|
| 3.78 | 3.88 |
#+TBLFM: @7$1..@7$2=vmean(@I..@-I);%.2f
That is less than 3% time penalty for the logs done during the execution of
all the `require'.
Best regards,
Seb
[1] BTW, why not a `require' instead?
--
Sebastien Vauban
next prev parent reply other threads:[~2012-12-19 9:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-18 22:48 Opening (for the first time) a 10-line Org doc takes 4 seconds Sebastien Vauban
2012-12-18 23:33 ` Bastien
2012-12-19 9:05 ` Sebastien Vauban [this message]
2012-12-23 8:52 ` Bastien
2012-12-19 15:09 ` Achim Gratz
2013-01-05 11:39 ` Bastien
2013-01-05 12:01 ` Achim Gratz
2013-01-05 12:37 ` Bastien
2013-01-05 13:23 ` Achim Gratz
2013-01-05 13:37 ` Bastien
2013-01-16 1:49 ` Bernt Hansen
2013-01-16 17:04 ` Achim Gratz
2013-01-05 12:39 ` Bastien
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=80a9tafm32.fsf@somewhere.org \
--to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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 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).