[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: |
Wed, 19 Aug 2009 13:56:00 -0700 (PDT) |
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.
Re: Slow start-up on Git trees, Christian Faulhammer, 2009/08/19
Re: Slow start-up on Git trees, Joakim Tjernlund, 2009/08/20