-
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
version 1.3.6 lanuchs so slower than 1.3.5 #1821
Comments
It is slower but it is doing more. It takes about 2 secs longer for 1.3.6 to launch. Added v1.3.5
v1.3.6
Can you elaborate? |
In 1.3.6 I'm getting around 10 second wait time between the screen showing up and the terminal being ready for input:
I'll update this post when I get 1.3.5 back on this system to see the difference. |
I did a bit more scientific research into the startup performance across the 1.3.x versions of Cmder. Observation: Version 1.3.6 takes a very long time to startup. On my work computer it's ~10 seconds. Steps:
Notes about experiment:
I performed this experiment on two different machines. Both run W10 October 2018.
This is the average startup time for each computer across each version, in milliseconds:
Here are the graph versions for just home, just work, and both. In the end, 1.3.6 is anywhere between 1.6 and 4.5 times slower than previous versions. Version 1.3.6 is ___ times slower to startup than these versions:
If there is any other information I can provide to help you figure out this slow down, please let me know. I really want this project to succeed. |
@gunr2171 Cmder 1.3.6 You can try this. It has been optimized for speed a little more than the released Cmder 1.3.6 and has a built in Edit the Cmder task in this new build and add a
Actual Sample Output from my system:
You can make it even faster by skipping git detection. Just add
That is better than my own Cmder 1.3.6 time posted above:
If you want to you can also time other Cmder versions by: Note: The Copy Add the following to the top of the
Add the following to the bottom of the
|
The below enables Cmder Fast Init mode for `cmd.exe` sessions. This is more like the Cmder 1.3.5 init process. See issue #1821 Cmder Fast Init mode bypasses or disables the following Cmder 1.3.6+ features: * Git root and version detection. Defaults to `%cmder_root%\vendor\git-for-windows` if it exists. * Path enhance validation before path modify so `%Path%` enhancements are forced. * Recursive path add for `"%CMDER_ROOT%\bin"` * Recursive path add for `"%CMDER_USER_BIN%\bin"` if `/c [user_config_folder` is specified. * `/d` switch to enable debug output. * `/v` switch to enable debug output. Add `/f` to Cmder task as shown below t enable fast init: _Note 1: This setting is invalid in Cmder `Powershell` and `Bash` sessions~_ _Note 2: Add `/t` also to see init timer output_ ![image](https://user-images.githubusercontent.com/7318053/47957637-052e3880-df90-11e8-93ef-91e1ab696d82.png) Cuts ~2.4 seconds off of init time. ![image](https://user-images.githubusercontent.com/7318053/47957795-45db8100-df93-11e8-8ae0-551d12c4e2dc.png)
@gunr2171 Cmder Fast Mode Init takes my init times from 1.81 down to .74 seconds. |
Thanks for the new builds. First results using only the
Two things of note
I ran 781 with the
Home went down a second, Work went down 3 seconds. I'm going to keep playing with this at work to see if I can deal with a 5.5 second start up by sacrificing git recognition (because that's a feature I really like). |
I provided the I have found in my optimizing this that startup times can vary widely from launch to launch, even on the two systems I have tested at home. The system I mentioned above I have seen 1.74, .94, .74, .72 seconds all on fresh launches and this new code. The timer may add some time because it is actually doing calculation of elapsed time but should only add a few milliseconds. You can try just adding Your work PC probably has the added overhead and variability of IT department controlled AV, HIPS, and possibly some DLP software that can cause huge slow downs. That could account for the much larger jump in time on the work PC. You can keep your Git and still us Fast Init Mode by adding |
Thanks ! ... |
Closing since 1.3.8 was released with |
version 1.3.6 lanuchs so slower than 1.3.5
The text was updated successfully, but these errors were encountered: