Comment by nickjj
7 years ago
Are you talking about running it from the command line?
I use Git almost every day and have it installed directly inside of WSL.
It's not slow for any projects I've worked on, but it's worth mentioning I'm not dealing with code bases with millions of lines of code and many tens of thousands of files.
Most of the code bases I work on have ~100kb LOC or less (most are much less), and hundreds or low thousands of files.
Grepping through 50,000+ files through a WSL mount on a non-SSD is pretty slow, but I haven't tried doing that on a native Linux system in a long time so I can't really say if that slowness is mostly WSL or grepping through a lot of files in general.
Its a project with several million lines of code.
If grep is hitting 100% utilization and isn't just file system bound, and you are dealing with ascii stuff, you can speed it up a lot of times by prepending 'LANG=C', so that it doesn't have to deal with unicode.
I'll throw in my vote to try something like ack / ag that have better defaults for code-grepping.
Here's some anecdata from my experience using git at work, where we have a single large repository for all projects.
Running `git status` in a Linux VM is fast (near-instant).
With the native Git for Windows, it's noticeably slower - maybe half a second - but still usable.
In WSL it takes around 10 seconds, which is just unusable for me.