-
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
Default Cmder install is very slow inside a large Git repo #1364
Comments
Check file vendor/profile.ps1 if you're using powershell as your main console. You can override script blocks in your user profile file, which gets included into main profile so you will preserve your customizations between upgrades. Or for Cmd promp you need to look into |
@seanofw For the |
The coloring most probably should be an opt-out to not work in the lua code anymore. But it definitely saved my day already! Thanks @mloskot for the pointer |
its also happening inside and SVN directory, cd is extremely slow and ls hangs as well |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contribution. |
This issue has been automatically closed due to it not having any activity since it was marked as stale. Thank you for your contribution. |
I just downloaded and installed Cmder for the first time. I opened it, typed
ls
a few times, and then cd'ed into one of my repositories at work, and... nothing. I thought it had broken, but after a little poking, I discovered that in fact it was merely extremely slow.It appears that whatever trick the prompt uses to display the current Git branch takes quite some time to load on a large repository, and it just so happened that my first tests were inside a large repository: More than a gigabyte of source code, scattered across ~50,000 files and ~10,000 directories.
I'm used to
git status
taking a few seconds in this repo when I run it, but I'm not used to every command, even simple things likels
andcd
, taking an extra four seconds (literally) after it completes. I'm pretty sure it's the prompt's Git integration, since it only seems to happen in this (admittedly huge) repository; anywhere else in the filesystem, it's fine and runs at full speed.A possible reasonable workaround might be changing the prompt so it just shows the current branch name (fast), rather than trying to determine the current code's commit status (slow).
But for me, the default configuration of Cmder out-of-the-box is nearly unusable, with no obvious way to fix it. There are a few older pages online that describe how to change the prompt (which I'd hoped to do to simply remove the Git status outright), but they seem to only apply to older versions of Cmder: I have 161206 stable, and the configuration files they talk about don't seem to exist, much less be editable.
So how can I make Cmder usable when working inside a large Git repository?
The text was updated successfully, but these errors were encountered: