posh-hg
posh-hg copied to clipboard
Hg is very slow on mapped network drivers
Hello,
I'm using ConEmu + posh-hg. Thanks for the tool, its is really great.
The only serious issue I've found so far is regarding mapped network drivers.
I've use the command New-PSDrive –Name "Z" –PSProvider FileSystem –Root \\myremote\myshare –Persist
to create a new network driver. It happens that the path is a mecurial repository. However, hg.exe takes a long time to resolve this path. It isn't a network issue because this share is actually on one of my virtual machines. When I disable hg, it is very fast to access the folder.
I can profile the directory change to see how long it takes, but it's about 5, 6 seconds everytime I hit the "enter" button. My machine is also OK (i7, 16 GB RAM, SSD), so it should not take that long.
Thanks for everything
Bruno, could you benchmark running "hg status" on the network share in question versus running it locally on the VM, as I think that might point at the root cause of the slowness?
Jonathan, I will gladly do it, but it was almost three years since I wrote this post, so the project I mentioned is complete and I don't use hg in my new ones. But I can create a test repo and see how that goes.