* vc-git slows Emacs down quite a bit, trying to find a way to remove hooks
@ 2012-03-26 19:11 Wei Liu
2012-03-27 2:05 ` XeCycle
0 siblings, 1 reply; 4+ messages in thread
From: Wei Liu @ 2012-03-26 19:11 UTC (permalink / raw)
To: help-gnu-emacs; +Cc: liuw
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vc-git slows Emacs down quite a bit, trying to find a way to remove hooks
2012-03-26 19:11 vc-git slows Emacs down quite a bit, trying to find a way to remove hooks Wei Liu
@ 2012-03-27 2:05 ` XeCycle
2012-03-27 10:25 ` Alex Bennee
0 siblings, 1 reply; 4+ messages in thread
From: XeCycle @ 2012-03-27 2:05 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1377 bytes --]
Wei Liu <liuw@liuw.name> writes:
> Hi all
Hello.
> 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.
See variable vc-handled-backends.
If you need it sometimes, just set the variable temporarily back,
e.g. using directory-local variables.
> 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?
a) Probably don't need that. b) Same as a.
> 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?
Dunno, when viewing my local Emacs repo it isn't slow. I don't
want to clone the kernel repo though.
--
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591
[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vc-git slows Emacs down quite a bit, trying to find a way to remove hooks
2012-03-27 2:05 ` XeCycle
@ 2012-03-27 10:25 ` Alex Bennee
2012-03-27 12:08 ` XeCycle
0 siblings, 1 reply; 4+ messages in thread
From: Alex Bennee @ 2012-03-27 10:25 UTC (permalink / raw)
To: XeCycle; +Cc: help-gnu-emacs
On 27 March 2012 03:05, XeCycle <XeCycle@gmail.com> wrote:
> Wei Liu <liuw@liuw.name> writes:
>
>> Hi all
>
> Hello.
>
>> 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.
>
> See variable vc-handled-backends.
I'm using :
(setq vc-handled-backends (remq 'Git vc-handled-backends))
But something keeps re-adding it and I can't find out what...
--
Alex, homepage: http://www.bennee.com/~alex/
http://www.half-llama.co.uk
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vc-git slows Emacs down quite a bit, trying to find a way to remove hooks
2012-03-27 10:25 ` Alex Bennee
@ 2012-03-27 12:08 ` XeCycle
0 siblings, 0 replies; 4+ messages in thread
From: XeCycle @ 2012-03-27 12:08 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 460 bytes --]
Alex Bennee <kernel-hacker@bennee.com> writes:
[...]
> I'm using :
>
> (setq vc-handled-backends (remq 'Git vc-handled-backends))
>
> But something keeps re-adding it and I can't find out what...
Try to reproduce with -q, if you can't, bisect your configuration
file.
--
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591
[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-03-27 12:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-26 19:11 vc-git slows Emacs down quite a bit, trying to find a way to remove hooks Wei Liu
2012-03-27 2:05 ` XeCycle
2012-03-27 10:25 ` Alex Bennee
2012-03-27 12:08 ` XeCycle
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).