Files: Bug: Git columns causing CPU to increase
Description
Performance of listing files in any folder in a git repository is abysmal for me to say the least. As soon as I open a git folder, CPU maxes out for a short period of time while the UI freezes/stutters intermittently, making the app unusable.
Sometimes, switching from one folder to another in the same git repository also freeze the app for a few seconds to a few 10 seconds before the content of the folder actually changes.
During these freezes, nothing seemed to have been logged to the debug.log file, I have attached it anyway.
I noticed repetitive COMExceptions in the log with the message “由于超时时间已过,该操作返回”, they translate to “This operation returned because the timeout period expired”.
See the following screenshot for the CPU utilisation over 60 seconds opening a folder containing 108 folders/files.
Steps To Reproduce
Open any folder in a git repository.
Requirements
At least provide an option to disable native git integration, in case if this is a rare case that only happens to my git repo or on my PC.
Files Version
2.5.10.0
Windows Version
Windows 11 Pro 22H2 OS Build 22621.1848 Windows Feature Experience Pack 1000.22642.1000.0
Log File
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 41 (22 by maintainers)
I want to thank everyone for their patience on this issue. We’re excited to share that the issues have been resolved in our dev branch and will be included in one of the next releases. Additionally, the improvements work even without disabling the Git features on the status bar. Please thank @ferrariofilippo for their hard work on these improvements!
Maybe we could move the git operations to a separate thread, and update the UI when the result is ready?
The UI is laggy and freezing for me when opening a folder containing a git repository.
We should do this and see what the impact is. I suspect it won’t be enough, but it’ll be good to make some progress on this before v3.