From: Andy Parkins <andyparkins@gmail.com>
To: git@vger.kernel.org
Subject: Re: git-status and git-diff now very slow in project with a submodule
Date: Thu, 20 May 2010 18:45:48 +0100 [thread overview]
Message-ID: <ht3sda$cvo$1@dough.gmane.org> (raw)
In-Reply-To: 4BF55ACD.3060009@drmicha.warpmail.net
Michael J Gruber wrote:
> You see: No submodule summary here!
> Try setting the variable to true and see the difference. False is the
> default.
Quite so; I hadn't understood submodulesummary -- I just tried it when it
was suggested.
> Git needs to check the submodule in order to produce the "modified" line
> even when no summary is required. Stopping Git from looking at the
I realise that -- what I was after is a return to the old behaviour -- under
the control of an option.
> submodule at all is impossible, I think. One could only hope that it
> stops scanning after the first modification.
"Impossible" is a strong word for a behaviour that existed pre-1.7.
It's not that I want git not to look at the submodule at all; in fact it
certainly should for those cases when the submodule commit has changed, and
I guess that a check for a dirty index is pretty quick too; but scanning the
whole submodule tree (which it has to do to find if anything was modified,
even when nothing was modified) is a lot of extra time when the submodule is
large. That extra time is inconvenient when you're working on a small
project that makes use of a large project as a submodule. (Most of my
personal use of submodule is embedding large projects that I want to be able
to guarantee are at a particular version, but I don't really change them)
Andy
--
Dr Andy Parkins
andyparkins@gmail.com
next prev parent reply other threads:[~2010-05-20 17:44 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-20 10:01 git-status and git-diff now very slow in project with a submodule Andy Parkins
2010-05-20 10:10 ` Stefan Naewe
2010-05-20 11:37 ` Andy Parkins
2010-05-20 15:52 ` Michael J Gruber
2010-05-20 17:45 ` Andy Parkins [this message]
2010-05-20 17:49 ` Jens Lehmann
2010-05-20 18:01 ` Andy Parkins
2010-05-21 12:36 ` Nguyen Thai Ngoc Duy
2010-05-20 13:28 ` Junio C Hamano
2010-05-20 17:17 ` Andy Parkins
2010-05-20 22:59 ` Junio C Hamano
2010-05-21 12:05 ` Jens Lehmann
2010-05-21 12:52 ` Leo Razoumov
2010-05-21 17:54 ` Andreas Schwab
2010-05-22 12:05 ` Jens Lehmann
2010-05-22 12:08 ` Jens Lehmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ht3sda$cvo$1@dough.gmane.org' \
--to=andyparkins@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.