all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Sebastien Vauban'" <wxhgmqzgwmuf@spammotel.com>,
	<help-gnu-emacs@gnu.org>
Subject: RE: How to load recentf only after opening/saving a file for thefirsttime?
Date: Fri, 7 Sep 2012 08:48:07 -0700	[thread overview]
Message-ID: <F17EBDDA109D4B9A96A26297E81FC252@us.oracle.com> (raw)
In-Reply-To: <80pq5xswwt.fsf@somewhere.org>

> The fact is that Emacs (RC 24.2 on Windows) takes around 25 
> seconds to load my (huge, yes) .emacs file (378 KB, ~10 KLOC
> from which a third is white lines, and another one is comment lines).
> Loading Org mode takes another minute or so, with 50 agenda files.
> 
> That's really too much. That's why I'm trying to refactor my 
> .emacs file to try to see what takes time. I'm trying to
> autoload as much as possible, and to delay the `require' calls

I understand.  And that's a good approach.  As you know, you can also use
`eval-after-load' to avoid doing some stuff unnecessarily.

As with any performance problem, start by attacking the biggest hogs.  It sounds
like your 50 Org-mode agenda files constitute 2/3 of your performance problem at
the moment, so perhaps start there.

Do you really need to load all of your Org agenda files?  Do they need to be so
big/slow?  Does Org mode provide any constructs that might alleviate some of
this penalty?

I don't have answers for you, sorry.  Except for this obvious one: try starting
Emacs less often and keeping your Emacs sessions open longer.

Oh, and of course byte-compile the code you load.  (You mention whitespace lines
and commented lines, but those are irrelevant for byte-compiled code.)

And maybe try profiling code for the worst parts of your problem.  Perhaps
you've hit a bug or two, or perhaps you've found an opportunity for some library
to be improved wrt load performance.




  reply	other threads:[~2012-09-07 15:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-07 13:45 How to load recentf only after opening/saving a file for the first time? Sebastien Vauban
2012-09-07 14:34 ` How to load recentf only after opening/saving a file for the firsttime? Drew Adams
     [not found] ` <mailman.8316.1347028472.855.help-gnu-emacs@gnu.org>
2012-09-07 14:57   ` Sebastien Vauban
2012-09-07 15:48     ` Drew Adams [this message]
     [not found]     ` <mailman.8322.1347032903.855.help-gnu-emacs@gnu.org>
2012-09-13  7:37       ` How to load recentf only after opening/saving a file for thefirsttime? Sebastien Vauban
2012-09-13 13:15         ` Stefan Monnier
2012-09-13 14:48         ` How to load recentf only after opening/saving a file forthefirsttime? Drew Adams

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=F17EBDDA109D4B9A96A26297E81FC252@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.com \
    /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.