[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Slow start-up on Git trees
From: |
Dan Nicolaescu |
Subject: |
Re: Slow start-up on Git trees |
Date: |
Thu, 20 Aug 2009 01:07:59 -0700 (PDT) |
Joakim Tjernlund <address@hidden> writes:
> Dan Nicolaescu <address@hidden> wrote on 19/08/2009 22:56:00:
> >
> > Christian Faulhammer <address@hidden> writes:
> >
> > > Hi,
> > >
> > > Joakim Tjernlund reported in
> > > http://bugs.gentoo.org/show_bug.cgi?id=281009 that Emacs started in a
> > > Git tree is really slow. This does not happen with other SCM systems
> > > and we were able to reproduce the problem and narrowing it down
> > > to /usr/bin/git diff-index -z HEAD -- Makefile, called in
> > > vc-git-state. Any possibilities to improve performance here?
> >
> > There are at lease two ways:
> > - talk the git people to improve the performance of "git diff-index",
> > - implement a vc-git-state-heuristic (see other vc-*-state-heuristic
> > functions) that parses .git/index and uses that return the state of
> > the file, thus avoiding the "git diff-index" call.
> >
> > Is worth it?
> > I'd say probably not, the delay only happens the first time of accessing
> > a file in the git tree.
>
> The first time every day is a bit annoying. How about, for a starter, a
simple
> way of disabling vc-git in ~/.emacs?
(setq vc-handled-backends (delq 'Git vc-handled-backends))