-
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
Slow on startup #1122
Comments
If you disable everything in init.bat why use cmder then? Cmder is a set of tools including ConEmu that together is an enhanced version of the windows cmd shell and the init.bat is what handles loading those enhancements. First time launch is slower because some cfg files are initialized. Launch will always be SLIGHTLY slower because it is not vanilla cmd.exe but should not be impactful. Second launch on my system takes under a second. |
I already know that, I am not stupid. I disabled it temporarily to see if that would make a difference on startup.
Not the case for me: it consistently takes ~5 seconds to launch. Once it is launched, creating a new cmd.exe shell (for example) in a tab or a window is quick. Note that I am not talking about the first launch after installation, but every launch of a new instance of cmder.exe. It strikes me as a serious performance problem, since the launcher doesn't need that long to do its job and defers to ConEmu for the rest, and ConEmu launches quickly on its own. I'm willing to help investigate it however I can. |
Precisions: my machine is an Core 2 Duo E8400 running Win7 Family SP1. Cmder is installed on an SSD. I'm gonna go ahead and see what I can understand on my own, but I'd appreciate any ideas about why this is so slow. |
Hi, maybe a virus scanner problem? |
Found the problem:
I already implemented solution 1 (just rearranging the call to |
Just updated Cmder today and I'm seeing the same issue. 5+ seconds on startup. |
@lamarqua yes, a PR would be great |
Fixes cmderdev#1122 by simply calling CreateProcess before the SendMessageTimeout calls that are used to propagate environment variable changes.
Fix for slow startup under certain conditions (#1122)
On my machine, a vanilla installation of Cmder takes >5s to startup compared to the instantaneous ConEmu.
I tried disabling everything in the
init.bat
script but it didn't really make a difference.The text was updated successfully, but these errors were encountered: