Skip to content
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

opening git extensions will occupy 30%+ cpu #3774

Closed
xiemms opened this issue Jun 19, 2017 · 10 comments
Closed

opening git extensions will occupy 30%+ cpu #3774

xiemms opened this issue Jun 19, 2017 · 10 comments
Labels
type: dependency bug type: git issue Issues that attributable to git

Comments

@xiemms
Copy link

xiemms commented Jun 19, 2017

--- GitExtensions2.49, Git 2.10.1.windows.1, Microsoft Windows NT 6.3.9600.0

windows 10
Intel i5-4590 CPU @3.30GHz
12G memory
image

@jbialobr
Copy link
Member

jbialobr commented Jun 19, 2017

Can you use processexplorer and investigate what command is being run for this process?

@xiemms
Copy link
Author

xiemms commented Jun 19, 2017

image
seems that the vs code results in the situation ?

@jbialobr
Copy link
Member

Can you right click on the git.exe process and click on the Properties menu?
On the Image tab where is a Command line shown. It would be helpful to see the Environment tab as well.

gitext

@xiemms
Copy link
Author

xiemms commented Jun 19, 2017

image
image
i find that much cpu will be occupied when opened by GitExt Browse if the project has many files ,even though i closed the vs code. while it's getting much better if the git project has less files

image
Folder 27537
file 178634
node_modules has been added to .gitignore

@jbialobr
Copy link
Member

It is caused by the Show number of changed files on commit button being turned on.

Can you tell how long it takes to run
git ls-files -o -i --exclude-standard
and
git status --porcelain -z --untracked-files
from the command line (close GitExtensions before running them)?
How many files do these commands return?

@xiemms
Copy link
Author

xiemms commented Jun 19, 2017

image

image
the first command doesn't work while waiting for 5 minutes and have tried it twice。
by the way, the cpu was occupied 30%+

@xiemms
Copy link
Author

xiemms commented Jun 19, 2017

i try to disable "Tools > Settings > Git Extensions > Show repository status in browser dialog" option , processes  will be ok

@jbialobr
Copy link
Member

the first command doesn't work while waiting for 5 minutes and have tried it twice

Perhaps there is a bug in git (looks like an infinite loop), consider reporting it to the git community.

@jbialobr jbialobr added type: dependency bug type: git issue Issues that attributable to git labels Jun 19, 2017
@xiemms
Copy link
Author

xiemms commented Jun 19, 2017

thanks

@jbialobr
Copy link
Member

Try the latest git release, there were some changes made to the ls-files command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: dependency bug type: git issue Issues that attributable to git
Projects
None yet
Development

No branches or pull requests

2 participants