Cmder: Extremely slow startup

Created on 25 Jan 2019  路  24Comments  路  Source: cmderdev/cmder

I've upgraded from version 1.3.6.678 to latest 1.3.11.843 and the startup is painfully slow. More than 5s.

I've even tried downloading a fresh copy of the mini release and put it into my C: drive (which is a Samsung 960 EVO) and it's the same.

Previous version loaded almost instantly.

Most helpful comment

Is this startup speed normal? I think it is very slow.

mI30vdKAs0

image

startup > tasks > cmd > add arg /f

image

All 24 comments

@eparizzi : are you a windows insider ? actually i have the same issue, and i actually wonder if its not related to windows itself... some of my programs accessible via right-click ( open with... ) are now pretty slow to launch ( eg. for IDEs or archives programs ). On the other side the cmd/powershell shift/right-click works pretty well.
Also i had activated the sandbox for windows defender, disabling it reduced the launchs...
( sorry for mistakes, english not primary )

they are virtually the same for me:

image

If I add /f to cmd::Cmder task1.3.11is actually 1 second faster than1.3.6`

@daxgames Could you provide a little more info on where exactly you put /f. I have tried several scenarios but all fail.

@speedysparrow it's all In the README.md

Thanks. It did improve my startup, not quite with your impressive results but still better.

You can also do a /t and it will give you an exact time it takes to start. How long does it take?

Aah, that's where you got that timer from:-). Well, my readings doesn't make much sense to me. 3 times with and without /f. Using Launchy but directly from C:\cmder seems to yield the same weird measures.

Without /f
Elapsed Time: 39:30:34.00 (142234.00s total)
Elapsed Time: 15:28:34.00 (55714.00s total)
Elapsed Time: 69:27:42.00 (250062.00s total)

With /f
Elapsed Time: 17:22:32.00 (62552.00s total)
Elapsed Time: 65:22:7.00 (235327.00s total)
Elapsed Time: 22:21:45.00 (80505.00s total)

That is still crazy slow even with /f

@speedysparrow do you have an antivirus/antimalware you can disable and try again. These could be slowing it down. If they are you might be able to exclude cmder from on access scans and get it back to full speed.

Just curious what hardware you running this on, processor, hdd type, and memory?

Those times can't be right the fastest says it took 15+ minutes to start

True, something must be wrong with the timings. In real time:-) it's more like 5-6 seconds. I am on a Lenovo T460s with:
Win10 - ver. 1511
i5-6300U @ 2.4 GHz
20 GB RAM
But is a corporate computer with all sorts of anti-virus and what have we that I can't disable. Guess I just have to live with it.

Still weird with the timings:-)

@speedysparrow I personally know others with corporate laptops that have the similar complaints. Sorry not anything we can do about that.

I also noticed slowness on my corporate laptop but after disconnecting the network drives i saw a huge improvement in startup time when opening new bash consoles.
Hope it helps.

Is this startup speed normal? I think it is very slow.

mI30vdKAs0

@GF-Huang yes. If you want it to be faster but sacrifice some rarely used functionality you can add /f to the task launching your session.

Is this startup speed normal? I think it is very slow.

mI30vdKAs0

image

startup > tasks > cmd > add arg /f

image

Got it, thank you all.

for me it was the GIT_INSTALL_ROOT environment setting that was missing. therefore the init.bat was taking a long time to discover where git.exe was installed. After setting GIT_INSTALL_ROOT in my environment settings, cmder starts a whole lot faster.

image

For me, it takes almost 9 seconds to launch. I added the /f argument variable. Is there anything I can do to make it faster? Before I remember it was almost instantaneous.

image

Those are my specs and my hard drive is an SSD.

for me it was the GIT_INSTALL_ROOT environment setting that was missing. therefore the init.bat was taking a long time to discover where git.exe was installed. After setting GIT_INSTALL_ROOT in my environment settings, cmder starts a whole lot faster.

The hint from mvanwaaijen really helped!
Before: Cmder Startup time used to be 9 seconds on a modern Windows 10 Notebook, i5, 16 GB, SSD,...
After adding GIT_INSTALL_ROOT environment variable (system): < 3 seconds!

Thanks fakaki, I got similar results as well by doing that recommendation.

For anyone wondering how to do it, add the line underlined in red here.

image

just remove those function calls , and hard code all env, since you know the very git_install location.
My demo, https://github.com/doglex/Light_Weapon/blob/master/cmder/vendor/init.bat

which is fast
0.5s in HDD
0.1s in SSD

@doglex that works great for a single person with a single set of settings if that person wants to maintain his own init.bat. I wish we could bw that lean it just will not work for the masses.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jenisys picture jenisys  路  3Comments

justinmchase picture justinmchase  路  3Comments

AaronKaa picture AaronKaa  路  3Comments

emesx picture emesx  路  3Comments

sathishsoundharajan picture sathishsoundharajan  路  3Comments