On Windows, I am seeing long command times (10+ seconds) when running mob. I was able to narrow it down to the user.Current() call. I assume it takes a long time because my Windows user is managed by an organization domain controller. Switching to os.UserHomeDir() fixes this performance problem and user.Current() uses that under the hood anyways: https://github.com/golang/go/blob/974b2011ca2a74ca1137558771b428bddb2e7df3/src/os/user/lookup_stubs.go#L32.
On Windows, I am seeing long command times (10+ seconds) when running mob. I was able to narrow it down to the
user.Current()
call. I assume it takes a long time because my Windows user is managed by an organization domain controller. Switching toos.UserHomeDir()
fixes this performance problem anduser.Current()
uses that under the hood anyways: https://github.com/golang/go/blob/974b2011ca2a74ca1137558771b428bddb2e7df3/src/os/user/lookup_stubs.go#L32.