all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org
Subject: Re: How to load recentf only after opening/saving a file for thefirsttime?
Date: Thu, 13 Sep 2012 09:37:34 +0200	[thread overview]
Message-ID: <80fw6mfk5d.fsf@somewhere.org> (raw)
In-Reply-To: mailman.8322.1347032903.855.help-gnu-emacs@gnu.org

Hello Drew,

"Drew Adams" wrote:
> 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.

I did not give, last time, the time needed to load `recentf'. Here it is
(1.72 s):

--8<---------------cut here---------------start------------->8---
(info) +-> Requiring `recentf'...
(info)   +-> Requiring `easymenu'... c:/Program Files/Emacs-24.2/lisp/emacs-lisp/easymenu.elc (loaded in 0.33 s)
(info)   +-> Requiring `tree-widget'...
(info)     +-> Requiring `wid-edit'... c:/Program Files/Emacs-24.2/lisp/wid-edit.elc (loaded in 0.44 s)
(info)   +-> Requiring `tree-widget'... c:/Program Files/Emacs-24.2/lisp/tree-widget.elc (loaded in 1.02 s)
(info)   +-> Requiring `timer'... already loaded
(info) +-> Requiring `recentf'... c:/Program Files/Emacs-24.2/lisp/recentf.elc (loaded in 1.72 s)
--8<---------------cut here---------------end--------------->8---

About `vc' (3.00 s) -- which I need at startup time (?) for displaying an icon
in the modeline ("Unmodified-according-to-VC" buffer vs modified buffer) --, I
think it requires much more than needed (`ediff', for example, is not
necessary at startup time)...

--8<---------------cut here---------------start------------->8---
(info) +-> Requiring `vc'...
(info)   +-> Requiring `vc-hooks'... already loaded
(info)   +-> Requiring `vc-dispatcher'... c:/Program Files/Emacs-24.2/lisp/vc/vc-dispatcher.elc (loaded in 0.33 s)
(info)   +-> Requiring `ediff'...
(info)     +-> Requiring `ediff-init'... c:/Program Files/Emacs-24.2/lisp/vc/ediff-init.elc (loaded in 0.33 s)
(info)     +-> Requiring `ediff-mult'...
(info)       +-> Requiring `ediff-init'... already loaded
(info)     +-> Requiring `ediff-mult'... c:/Program Files/Emacs-24.2/lisp/vc/ediff-mult.elc (loaded in 0.31 s)
(info)     +-> Requiring `ediff-util'...
(info)       +-> Requiring `ediff-init'... already loaded
(info)       +-> Requiring `ediff-help'...
(info)         +-> Requiring `ediff-init'... already loaded
(info)       +-> Requiring `ediff-help'... c:/Program Files/Emacs-24.2/lisp/vc/ediff-help.elc (loaded in 0.28 s)
(info)       +-> Requiring `ediff-mult'... already loaded
(info)       +-> Requiring `ediff-wind'...
(info)         +-> Requiring `ediff-init'... already loaded
(info)       +-> Requiring `ediff-wind'... c:/Program Files/Emacs-24.2/lisp/vc/ediff-wind.elc (loaded in 0.28 s)
(info)       +-> Requiring `ediff-diff'...
(info)         +-> Requiring `ediff-init'... already loaded
(info)       +-> Requiring `ediff-diff'... c:/Program Files/Emacs-24.2/lisp/vc/ediff-diff.elc (loaded in 0.28 s)
(info)       +-> Requiring `ediff-merg'...
(info)         +-> Requiring `ediff-init'... already loaded
(info)       +-> Requiring `ediff-merg'... c:/Program Files/Emacs-24.2/lisp/vc/ediff-merg.elc (loaded in 0.28 s)
(info)     +-> Requiring `ediff-util'... c:/Program Files/Emacs-24.2/lisp/vc/ediff-util.elc (loaded in 1.45 s)
(info)   +-> Requiring `ediff'... c:/Program Files/Emacs-24.2/lisp/vc/ediff.elc (loaded in 2.39 s)
(info) +-> Requiring `vc'... c:/Program Files/Emacs-24.2/lisp/vc/vc.elc (loaded in 3.00 s)
--8<---------------cut here---------------end--------------->8---

... but I can't do anything about it, right, as it is hard-coded that way in
`vc.el' (which I need for the vc-icon in every loaded file).

Same for the (very) nice-to-have `dired+' which requires `ediff-util', hence a
lot more at the end (4.20 s in total):

--8<---------------cut here---------------start------------->8---
(info)     +-> Requiring `dired+'...
(info)       +-> Requiring `easymenu'... already loaded
(info)       +-> Requiring `dired'... already loaded
(info)       +-> Requiring `dired-aux'...
(info)         +-> Requiring `dired'... already loaded
(info)       +-> Requiring `dired-aux'... c:/Program Files/Emacs-24.2/lisp/dired-aux.elc (loaded in 0.25 s)
(info)       +-> Requiring `ediff-util'...
(info)         +-> Requiring `ediff-init'... c:/Program Files/Emacs-24.2/lisp/vc/ediff-init.elc (loaded in 0.27 s)
(info)         +-> Requiring `ediff-help'...
(info)           +-> Requiring `ediff-init'... already loaded
(info)         +-> Requiring `ediff-help'... c:/Program Files/Emacs-24.2/lisp/vc/ediff-help.elc (loaded in 0.28 s)
(info)         +-> Requiring `ediff-mult'...
(info)           +-> Requiring `ediff-init'... already loaded
(info)         +-> Requiring `ediff-mult'... c:/Program Files/Emacs-24.2/lisp/vc/ediff-mult.elc (loaded in 0.28 s)
(info)         +-> Requiring `ediff-wind'...
(info)           +-> Requiring `ediff-init'... already loaded
(info)         +-> Requiring `ediff-wind'... c:/Program Files/Emacs-24.2/lisp/vc/ediff-wind.elc (loaded in 0.27 s)
(info)         +-> Requiring `ediff-diff'...
(info)           +-> Requiring `ediff-init'... already loaded
(info)         +-> Requiring `ediff-diff'... c:/Program Files/Emacs-24.2/lisp/vc/ediff-diff.elc (loaded in 0.25 s)
(info)         +-> Requiring `ediff-merg'...
(info)           +-> Requiring `ediff-init'... already loaded
(info)         +-> Requiring `ediff-merg'... c:/Program Files/Emacs-24.2/lisp/vc/ediff-merg.elc (loaded in 0.23 s)
(info)       +-> Requiring `ediff-util'... c:/Program Files/Emacs-24.2/lisp/vc/ediff-util.elc (loaded in 1.88 s)
(info)       +-> Requiring `dired-x'...
(info)         +-> Requiring `dired'... already loaded
(info)         +-> Requiring `easymenu'... already loaded
(info)       +-> Requiring `dired-x'... c:/Program Files/Emacs-24.2/lisp/dired-x.elc (loaded in 0.47 s)
(info)       +-> Requiring `misc-fns'... nil (loaded in 0.30 s)
(info)       +-> Requiring `w32-browser'... nil (loaded in 0.25 s)
(info)       +-> Requiring `dired+'... already loaded
(info)       +-> Requiring `bookmark+'... nil (loaded in 0.25 s)
(info)       +-> Requiring `bookmark+'... nil (loaded in 0.25 s)
(info)       +-> Requiring `bookmark+'... nil (loaded in 0.23 s)
(info)       +-> Requiring `help-mode'... already loaded
(info)     +-> Requiring `dired+'... d:/home/sva/Downloads/emacs/site-lisp/dired+.el (loaded in 4.20 s)
--8<---------------cut here---------------end--------------->8---

Any way to lighten this?

OK, maybe I should load `dired+' in an eval-after-load "dired" (if that one is
not loaded on its own, by Emacs?)... I'll try.

Best regards,
  Seb

--
Sebastien Vauban


  parent reply	other threads:[~2012-09-13  7:37 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     ` How to load recentf only after opening/saving a file for thefirsttime? Drew Adams
     [not found]     ` <mailman.8322.1347032903.855.help-gnu-emacs@gnu.org>
2012-09-13  7:37       ` Sebastien Vauban [this message]
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=80fw6mfk5d.fsf@somewhere.org \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=help-gnu-emacs-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 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.