Subject: vc-git slow on large repository

From: S Boucher <[email-masked]>
Date: Fri, 18 Mar 2011 12:32:17 -0700 (PDT)

find-file and save-buffer are slow.  It appears to be due to vc-git-state.

vc-git-state calls:

     git diff-index -z HEAD -- file.cpp

Which is slow on large git repository, such as webkit.

The question is then whether or not vc-git.el can be more clever than it is now.

I don't have the answer to this.

System:
ubuntu 10.04 64bit
emacs 23.2
git 1.7.0.4
8G of ram
Intel Core i7 (8 processors)