Bug: Git columns causing CPU to increase
See original GitHub issueDescription
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
Issue Analytics
- State:
- Created 3 months ago
- Comments:22 (15 by maintainers)
@ferrariofilippo that’s a very good improvement, we can take it a step further and only load the branches when the flyout is opened but let’s start with limiting to the 15 most recent branches.
Similar issue on Windows 10. CPU usage is around 20-30% after opening Files app and browing folders and scrolling. Tried doing the same on native File explorer and at max it was maybe 5%.
At idle, Files uses more CPU (1.6-3%) than a Chromium browser (0-0.7%) at idle…![image](https://github.com/files-community/Files/assets/4366810/7b742de3-8648-43f4-af42-1672ee67ec24)