Jeff King <peff@xxxxxxxx> writes: > So untracked_files is definitely the worst, but I was surprised that > the index to HEAD diff takes so long. There is an obvious optimization you can do to "diff-index --cached" using cache-tree. If your index is really clean, computing the tree object the index would represent (without writing the tree object out) and comparing it against HEAD^{tree} may be a tad faster. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html