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

Re: Cygwin Git Performance

From
JHJeff Hostetler <git@jeffhostetler.com>
Date
May 21, 2019, 21:06 UTC
Message-ID
<5d06cf4a-c29f-335f-52f9-c6c35369b673@jeffhostetler.com>
In-Reply-To
<01cf52cb-7e90-efde-a06c-f0413f9efc8a@gmail.com>
On 5/21/2019 10:34 AM, Nathan and Ila Reynolds wrote:
Show 13 quoted lines
> I am not sure if this is the right mailing list.  If not, please 
> redirect me to the right place.
> 
> I have Cygwin's git (2.21.0) and Git for Windows (2.21.0) installed on 
> my Windows 10 machine.  I run the following command with each binary 
> "git push --all" on a simple 2 line change to 1 file.  If I use Cygwin's 
> git, then the operation takes almost 5 minutes.  If I use Git for 
> Windows, then the operation takes almost 20 seconds.  I tried using 
> --verbose to figure out why Cygwin's git is so slow but it does not 
> reveal anything to me as to why.  What can I do to figure out why 
> Cygwin's git is so slow? I am hoping that we can get to the bottom of 
> this and it can be fixed to help all users.
> 

You might try turning on GIT_TRACE_PERFORMANCE [1] and see if that shows any differences.

If you can install 2.22.0-rc* versions of both, you can turn on GIT_TR2_PERF [2] and some additional details.

If your repo is very large, it may be due to some Windows file system optimizations present in the Git for Windows version.

[1] https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables [2] https://github.com/git/git/blob/master/Documentation/technical/api-trace2.txt#L80

Hope that helps, Jeff

Previous: Adam Dinwoodie
Message 3 of 3 in “Cygwin Git Performance”
  1. Nathan and Ila ReynoldsMay 21, 2019
  2. Adam DinwoodieMay 21, 2019
  3. Jeff HostetlerMay 21, 2019

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.