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, 18:47 UTC
Message-ID
<CAGZ79kZQd4JrQsp6sk8x-OAWMxxbF+a8BXZb1VQSdJeiQ8jhuQ@mail.gmail.com>
In-Reply-To
<0B47434E-00FE-463A-95F1-1F10537C9F7A@gmail.com>

On Wed, Nov 25, 2015 at 10:42 AM, Lars Schneider <larsxschneider@gmail.com> wrote:

Show 7 quoted lines
> 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 ;)

Checkout the series merged at 65e1449 (2015-10-05, Merge branch 'sb/submodule-helper')

    The infrastructure to rewrite "git submodule" in C is being built
    incrementally.  Let's polish these early parts well enough and make
    them graduate to 'next' and 'master', so that the more involved
    follow-up can start cooking on a solid ground.
    * sb/submodule-helper:
      submodule: rewrite `module_clone` shell function in C
      submodule: rewrite `module_name` shell function in C
      submodule: rewrite `module_list` shell function in C
More specifically the commits in there:
submodule: rewrite `module_name` shell function in C
    This implements the helper `name` in C instead of shell,
    yielding a nice performance boost.
    Before this patch, I measured a time (best out of three):
      $ time ./t7400-submodule-basic.sh  >/dev/null
        real 0m11.066s
        user 0m3.348s
        sys 0m8.534s
    With this patch applied I measured (also best out of three)
      $ time ./t7400-submodule-basic.sh  >/dev/null
        real 0m10.063s
        user 0m3.044s
        sys 0m7.487s
Previous: Lars SchneiderNext: Duy Nguyen
Message 3 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.