unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Wei Liu <liuw@liuw.name>
To: help-gnu-emacs@gnu.org
Cc: liuw@liuw.name
Subject: vc-git slows Emacs down quite a bit, trying to find a way to remove hooks
Date: Mon, 26 Mar 2012 20:11:54 +0100	[thread overview]
Message-ID: <CAOsiSVUJpuGS6Uf59FMv2umAAz9WR2W5PM_xyArv-X+mGbn1aQ@mail.gmail.com> (raw)

Hi all

I find that vc-git takes quite a lot of time to load, both in Emacs 23
and Emacs snapshot. On my dev machine it takes up to 21 seconds. :-(

I don't want to disable vc-mode entirely, I just want to make sure
that vc-git doesn' t get loaded when I don't need it.

There was a topic [0] on this issue on stackoverflow. I took the
advice to remove vc-find-file-hook from fine-file-hook list, thus
speeding up Emacs a lot. But when I save file, vc-git gets loaded once
again, which consumes 21 seconds. So my questions are a) how to
disable this save file hook (I grepped in vc-*.el, didn't find
save-*-hook), b) are there any other hooks I need to take care of?

Extra questions (to developers and/or Emacs gurus): Why is vc-git so
slow (see [0] for profiling details)? Is there a genuine way to fix
this?

My setup: Intel Q9450, 4GB Ram, 500GB 7200rpm disk. Was playing with
Linux kernel git repository, which was stored in local disk.



Thanks
Wei.

[0] http://stackoverflow.com/questions/6724471/git-slows-down-emacs-to-death-how-to-fix-this



             reply	other threads:[~2012-03-26 19:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-26 19:11 Wei Liu [this message]
2012-03-27  2:05 ` vc-git slows Emacs down quite a bit, trying to find a way to remove hooks XeCycle
2012-03-27 10:25   ` Alex Bennee
2012-03-27 12:08     ` XeCycle

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=CAOsiSVUJpuGS6Uf59FMv2umAAz9WR2W5PM_xyArv-X+mGbn1aQ@mail.gmail.com \
    --to=liuw@liuw.name \
    --cc=help-gnu-emacs@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.
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).