threads / discuss / 42698

Git Bash Slow in Windows (possible fix)

Subject: Git Bash Slow in Windows (possible fix)

## tl;dr

3 messages between Jun 23, 2016 and Jun 24, 2016.

replies: 2people: 3as markdown or json

UberBooster· Jun 23, 2016, 16:02 UTC · lore
Ok, the subject may be a little misleading, but here is what happened.

Back in February 2016, I installed Git-Bash on my Windows 7 computer and everything worked great. Git-Bash would execute commands as fast as the Windows command prompt.

In June, Microsoft, in its infinite wisdom, decided to self install Windows 10 without my authorization. Now when I used Git-Bash, it was painfully slow (7-20 seconds just to get the $ prompt back after an 'ls' command). I rolled back to Windows 7 and it was still slow, but now my computer was rebooting every 10 minutes or so after displaying the BSoD. I decided on a clean install and wiped the hard drive and reinstalled Windows 7 fresh. After installing Git-Bash, it was still painfully slow. I read a bunch of forum fixes and none worked. The computer I was on was an old Lenovo X200 I purchased almost 10 years ago, so I decided I needed to upgrade. I purchased a brand new Lenovo T460 with Windows 7.

When it came in (Monday, June 20), I installed Git-Bash and to my
surprise, it was STILL slow, but since the computer was much faster, I
could stand to wait for each command to execute, taking only 5-12
seconds.  I then installed Adobe Creative Cloud software, which
included Photoshop CC and Lightroom CC, and I also installed MS Office
360.  AFTER installing this software, Git-Bash was AMAZINGLY fast.
Commands would execute almost instantaneously and I would get my
command prompt back as soon as I hit the Enter key.

After speaking with some people about this, they recommended that I inform you of my situation as it could be something that Microsoft installs as part of Office that helped make it faster. Not sure if this will be of any help to you all, but thanks for developing such a great product!

~Michael Wohl UberBooster, LLC (352) 258-3737

Andrew Ardill· Jun 23, 2016, 23:45 UTC · re: UberBooster · lore

Re: Git Bash Slow in Windows (possible fix)

Hi Michael,

First up, Git for Windows has a dedicated issue tracker over at https://github.com/git-for-windows/git/issues you may want to submit a bug report there (reference this email if it's easier).

On 24 June 2016 at 02:02, UberBooster <info@uberbooster.com> wrote:
Show 8 quoted lines
>
> Back in February 2016, I installed Git-Bash on my Windows 7 computer
> and everything worked great.  Git-Bash would execute commands as fast
> as the Windows command prompt.
>
> In June, Microsoft, in its infinite wisdom, decided to self install
> Windows 10 without my authorization.  Now when I used Git-Bash, it was
> painfully slow
Is there a chance that git was also upgraded at the time?

If the slow-down was caused by some change in git for windows it would be useful to identify when that happened.

> After speaking with some people about this, they recommended that I
> inform you of my situation as it could be something that Microsoft
> installs as part of Office that helped make it faster.

I don't know of anything specific, but if the upgrade path you took assumes something is installed (when it isn't), that is something that may be able to be fixed.

The reason this seems unlikely that that is all that is going on is due to you seeing the behaviour on a completely fresh OS and git install.

If you are able to give more details in the bug report about how to reproduce the behaviour that will help a lot too.

Regards,
Andrew Ardill
Johannes Schindelin· Jun 24, 2016, 13:29 UTC · re: UberBooster · lore

Re: Git Bash Slow in Windows (possible fix)

Hi,
On Thu, 23 Jun 2016, UberBooster wrote:
> [...] and I also installed MS Office 360.  AFTER installing this
> software, Git-Bash was AMAZINGLY fast.
I suspect you mean Office 365.

In any case, it is next to impossible to diagnose slowness after it dissipated.

For the record, we do have a wiki page that describes how to find out more about why Git Bash's startup might be slow (it should not be slow, of course, yet we had enough cases where we needed to find out more):

https://github.com/git-for-windows/git/wiki/Diagnosing-performance-issues

Ciao, Johannes

← back to recent threads