ConEmu: After restarting the PC, ConEmu x64 160522.x64 is slow

Versions

ConEmu build: ConEmu x64 160522.x64 OS version: Windows 7 Professional (French) x32/x64 Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): cmd 6.1.7601, git version 2.8.3.windows.1

Problem description

I recently updated from 160504 to 160515 (and finally 160522), and I have the same problem each time I restart :

  • running git-cmd is slow (too at least 2 seconds to allow me to come to the prompt)
  • switching from one tab to another is sluggish
  • the first time I had this problem was when I switched from 160504. However, I did not restart in between.

Repairing ConEmu using the option in the installer seems to fix the issue until next restart :

conemu-repair

Steps to reproduce

Initial

  1. Install 150522 (or latest) on top of 150504
  2. Start ConEmu with git-cmd.exe or cmd.exe (it exhibits the same problem).
  3. Start up takes too many time compared to version 150504 or after repair.

After a shutdown / start / restart of the PC

  1. Launch ConEmu after the logon screen
  2. Bash is very slow, cmd start up is slow (and after cmd.exe is started I don’t see significant speed down).
  3. Repair ConEmu using the installer from 160522 or 160515.
  4. No more speed down

Actual result

  • Under ConEmu:
$ time sha1sum logback.log
da39a3ee5e6b4b0d3255bfef95601890afd80709 *logback.log

real    0m0.439s
user    0m0.000s
sys     0m0.031s
  • Under git-cmd
$  time sha1sum logback.log
da39a3ee5e6b4b0d3255bfef95601890afd80709 *logback.log

real    0m0.016s
user    0m0.000s
sys     0m0.015s

Expected results

This is the expected result after reinstalling ConEmu - using the “Repair” option:

$ time sha1sum logback.log
da39a3ee5e6b4b0d3255bfef95601890afd80709 *logback.log

real    0m0.016s
user    0m0.000s
sys     0m0.015s

Additional files

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 20 (8 by maintainers)

Most upvoted comments

@Maximus5 I will close the issue because the solution reported by @princemaple worked for me, although I needed to reboot the PC.

I’m sorry for the inconvenience but still think it’s strange that the MS AV made ConEmu slow but not after reinstalling it.

With Norton/Symantec, I can’t disable it or ignore files from analysis so I can’t test.

All that I can say is that I’m under the impression it seems globally slower at work than at home but it is usable (this issue made ConEmu far more slower in comparison).

For the test I made tonight:

  • 160522 MS “Real Time Protection” disabled: no problem
  • Rollback to 160504 + MS “Real Time Protection” enabled (after reboot): slow. I’m guessing that now that MS do something (but what?) with ConEmu, it apply to each version 😕
  • 160522 MS “Real Time Protection” enabled + ignore list for C:\Program Files\Git , C:\Program Files\ConEmu and C:\Program Files (x86)\clink: unlike disabled the Real Time Protection, this need the PC to be rebooted for the changes to be noticeable. So, it works with a reboot…

My guess is that the MS AV was updated (it is on automatic mode) some time before I was switching to 160515.

OK @glhez @Maximus5 I’ve got somewhere.

I excluded several executables that come with git installation, that I saw taking significant time fraction being the active process (displayed on ConEmu status bar, thanks!), from real-time protection. Here’s the list

  • bash.exe
  • dirname.exe
  • git.exe
  • perl.exe
  • sed.exe
  • sh.exe
  • uname.exe

After doing so, ConEmu runs blazing fast again 😃 I tried but couldn’t find a better solution that doesn’t require whitelisting a bunch of process names.