Optimizations for improving speed#2825
Conversation
|
I'm not sure if this is the best place to report this, here it goes. When I run Cmder with this PR in a clean system (Windows Sandbox), I get an error on the invocation of Initial run
Second run
|
|
@daxgames Thank you for the great PR, I'm in the process of reviewing it. Excited to merge it soon! |
|
@DRSDavidSoft Hopefully it works as well for you as it has for me. |
|
I'm merging this in the development branch for further review. Please use the development branch as a base for any future PRs, I'll review your great changes very soon. Thank you once again! 🤝 |
| <value name="ConWnd X" type="long" data="2194"/> | ||
| <value name="ConWnd Y" type="long" data="95"/> |
There was a problem hiding this comment.
Should the starting X,Y position be changed?
|
Why are we getting back to using a development branch we abandonded that practice years ago. |
|
@daxgames Good for the CI, because GitHub actions can produce compiled versions of branches. I just wanted to keep the master branch "stable" for now. When we merge development back into master eventually, they will contain the same commits. Sorry if it caused any issues |
Optimize for Speed of Launch for Cmd.exe sessions.
Removed duplicate path entry prevention, aka
enhance_pathfunctionality from%cmder_root%\vendor\init.bat.%cmder_root%\vendor\init.batis now a run once thing that generates%cmder_root%\config\user_init.cmd.%cmder_root%\config\user_init.cmd:Is generated from a template,
%cmder_root%\vendor\user_init.cmd.template, if it does not exist.Deleting the current output file and starting a new
cmd::Cmdersession.Running a powershell script:
Is 3+ times faster than the current
masterbranch%cmder_root%\vendor\init.batIs esentially hardcoded version of
init.batthat does everythinginit.batdoes minus autodiscovery of MOST config.pathif/max_depthcommand line arg is greater than 1.The below speeds are WITHOUT
/fwith/ton a virtual box vm running on an older laptop without SSD storage. Modern hardware SHOULD be even fastermaster-------------------------->more_speed_2 - Initial Run------------------------------------>After user_init.cmd