git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git super slow on Windows 7

From
Stefan Beller <sbeller@google.com>
Date
Nov 25, 2015, 20:42 UTC
Message-ID
<CAGZ79kYUor3Hx+ggaDvkc8MSH+nMtZrgGXRvgLz2qqHZmy5tCg@mail.gmail.com>
In-Reply-To
<CACsJy8Becrc57+56BCLSq8Pd9p5m2qpERqXwY2AN21H=BfADNA@mail.gmail.com>
On Wed, Nov 25, 2015 at 12:23 PM, Duy Nguyen <pclouds@gmail.com> wrote:
Show 15 quoted lines
> On Wed, Nov 25, 2015 at 7:47 PM, Stefan Beller <sbeller@google.com> wrote:
>> On Wed, Nov 25, 2015 at 10:42 AM, Lars Schneider
>> <larsxschneider@gmail.com> wrote:
>>> After some investigation I figured that ~50 Submodules are the culprit.
>>> Does anyone have an idea how to speed up Git on Windows while keeping 50 Submodules?
>>>
>>> Thanks,
>>> Lars
>>>
>>>
>>
>> Use the latest version of Git ;)
>
> Does it do parallel refresh yet? I think it would help.  I only looked
> at "git log --merges origin/pu" and nothing caught my eyes.

No. The hinted patch series only does a partial shell->C conversion, which is the best guess for improving git status here.

I punted on parallel local operations inside "git submodule update" for now, too as when things go wrong there, you need a human to resolve the merge conflict, and as a user you only want to deal with one merge conflict at a time instead of being left there with a ton of unresolved issues (according to the git log of older patches in the submodule area).

git status should require not human interaction if things go bad within submodules, so we may want to speed that up by parallelizing the submodule part. The status command gathers all information of submodules by a call to "git submodule summary" and does some slight post processing on the output. "git submodule summary" however is written completely in shell code (200 lines, so I estimate 400 lines of C).

I will benchmark that later today and check if it's worth for us to rewrite that in C for our case (we plan to have lots more submodules, but we're a linux shop)

Previous: Duy Nguyen
Message 5 of 5 in “Git super slow on Windows 7”
  1. Lars SchneiderNov 25, 2015
  2. Lars SchneiderNov 25, 2015
  3. Stefan BellerNov 25, 2015
  4. Duy NguyenNov 25, 2015
  5. Stefan BellerNov 25, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.