3 ms·
why not use git natively? I've never understood why people use git in WSL since the IO performance isn't great
by Zekio 7y ago
why not use git natively? I've never understood why people use git in WSL since the IO performance isn't great
- dleslie 7y agoI use Emacs in WSL, along with a suite of other tools like rust-analyzer, and the experience is _lightyears_ beyond trying to run those tools under regular Windows.
- tsimionescu 7y agoUnfortunately Git on Windows is also extremely slow. Especially using Magit in emacs, which does a lot of git calls, works much, much faster for me if it's sshing to a Linux VM for each call then running natively on Windows.
- jfkebwjsbx 7y agoThat may have been the case in the past, but Microsoft put some effort into making Git faster in Windows. Also, remember to disable the antivirus for your Git folder!
- tsimionescu 7y agoIf only that were up to me... Company laptop, company antivirus, company code...
- vbezhenar 7y agoGit is not slow for me. Don't know about Emacs, but I'm using git from command line and from Idea and it works just fine, instantly for ordinary tasks. Commiting 1000+ files takes few seconds. Given the fact that Git is used for Windows development with monster monorepository, I think that something's wrong with your setup rather than Git on Windows in general.
- tsimionescu 7y agoGit itself is decent, the problem is that Magit calls git a lot of times for a single GUI action. For some things, it can call git 5-10 times for a single key press. If every git invocation is around 1 second, that becomes a noticeable delay...