-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ls
et al slow after updating cmder
#993
Comments
Any more info I can add? |
Can you do a 100% new installation, not overwriting anything. Just download https://github.com/cmderdev/cmder/releases/tag/v1.3.0-pre cmder.zip/7z and put it in a new folder and run it. The update prompt will always happen, the question is if the prompt itself looks fine, the lambda etc. |
When I updated I removed the old version first - and ran from a fresh clean extracted version. The prompt itself looks fine. The only thing is the intermittent slow-down. |
Can you do |
|
If I open a regular |
Well that means you are using an external version of git and it's tools, can you check the version of it? |
I actually didn't install this manually - it got installed by another software, maybe Visual Studio. I would be fine having cmder use the version it bundle instead. There was going to be a ENV variable one could use, right? Has that made it into this latest version? |
Well we always prefer already installed Git versions, see https://github.com/cmderdev/cmder/blob/master/vendor/init.bat#L43 so you can either update your installation manually or uninstall it since you already have it with cmder. |
Updated to Git 2.9, again experience the lag. I'll try to force cmder to use the bundled version and see how that goes. |
I made cmder load the git version that ships with cmder - but also this experience this lag. Any ideas to what I can do to debug further? |
Did you also update the included git version of cmder? |
No - I only updated the stand-alone version. You want me to try to update the bundled version as well? (I might try to restore the original version I had - just to see if this relate to going from Win7 to Win10 - or updating cmder.) |
Well actually, download this https://ci.appveyor.com/api/buildjobs/k9lhpgfxryqhpft7/artifacts/build/cmder.7z unpack it into a NEW folder and tell me if that is still slow. |
Extracted into a completely new folder where cmder have never been located at - still the intermittent slow-down. |
When I compare the old 1.1.x version it's fast. I never seem to see the intermittent slowness. I notice it has a folder named msysgit while 1.2.x+ have git-for-windows. Relevant? |
I did an experiment - copied the |
That would be something to report over at https://github.com/git-for-windows/ then |
The strange thing is - if I open a |
I'm not sure if I had the same exact issue, but I experienced the same thing you described whenever I was connected to a remote VPN. Disconnecting from the VPN resolved the issue, but obviously that's not a viable solution. What seems to be working for me now:
Then, in C:\cmder\vendor\git-for-windows\etc\nsswitch.conf:
The change here was that I commented out the db portion under passwd (I think group had that there already). Now, everything seems to be running quickly again. |
@lunyx Trying this tonight when I get home. It is painfully slow on the vpn but fast in the office. Will let you know. |
I met this issue as well. I tried @lunyx 's solution. It works. Another solution is to download ls_for_windows from https://u-tools.com/download_prod.asp?download%5Fid=600&Agree=1. put ls.exe into c:\cmder\bin. |
I was seeing very slow ls.exe times, and just modifying nsswitch.conf as @lunyx suggested seems to have fixed it. (I did not create the passwd and group files.) |
Tweaking |
commented out the db portion under passwd works for me currently |
Had the same problem on win7x64, commenting out 'db' for 'passwd: files' in nsswitch.conf did the trick, just as indicated above. I didn't have to run mkpasswd or mkgroup to see the improvement. |
lunyx's solution works perfectly. |
Tried the solution suggested by @lunyx and it now works perfectly! Thanks! |
+1 @lunyx 's trick worked 👍 |
I had Win7 with cmder
Version v1.1.4.1
.After updating to Win10 I noticed that cmder was out of date (due to the lambda not displaying correctly.)
I downloaded cmder from the website and now it says I'm running
Version v1.2.9
.After doing this I notice that
ls
for instance often takes 20-30 seconds to return any output. (3 folders, 3 files.)If I run
ls
against right after then it's fast again. But give it a few minutes and it will again be slow.Any ideas what causes that?
The text was updated successfully, but these errors were encountered: