Lags when loading git repository without git installed
Prerequisites
- [x] I have searched open and closed issues for duplicates.
Describe the bug
A clear and concise description of what the bug is.
If applicable, add screenshots or screen recordings to help explain your problem.
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
Screenshots or screen recordings
Logs
Platform Information
- [ ] I'm using the latest version from git that I've manually compiled
- [ ] I'm using the latest released stable version
Additional context
Please complete the template with details about the issue, thanks.
Having this issue well.It takes about 1-3 seconds for files to open where before it opened instantly. To reproduce, just open files. I'm using the latest released stable version and having the issue.
I have not noticed any appreciable delay opening Files on my system. Even if one of the restored tabs contains 1000's of files and takes a few seconds to completely display in IconView, the Files window itself shows in about 0.5 seconds with four tabs restored, slightly less with one tab restored. How many tabs are you restoring? Is it faster if you do not restore tabs or restore only the home folder? Can you identify any other factor that influences start up time on your system? Possibly the Git plugin and the tab name disambiguation is adding an increased overhead. When you say "before" I assume you mean version elementary 5.0? Or did you mean the previous stable release of Files (may be the same thing)?
It was operating normally from the last release of Files. You might be right in saying that they pushed out at the same time. I captured an example of the lag: https://www.youtube.com/watch?v=k7SnIWqhhck
Its only basic picture and video thumbnails, and only about 100-200 files at most.
I notice that many of the video folders and items are bearing a Git emblem? Why is that? This suggest that the problem is related to git plugin taking a lot of time to discover the status of all the subfolders and items in this case. In which case we need to look at doing that asynchronously so that it does not slow up appearance of the window.
Sorry for the late reply.
If you mean the green badge next to each file, I have no idea what that is. I also found that enabling hide thumbnails makes it faster to navigate through each folder. It does not fix the slow launch of files though.
The green badge indicates that the files are part of a Git repository - do you have git installed? Is there hidden folder named .git in the folder or any of its parents? If you did not intend these folders to be in a git repository you can delete the .git folder. That might speed things up for you.
If there are a lot of images in a folder then loading the thumbnails will slow things (especially if they do not already exist i the cache). Also IconView is slow to lay out a large number of files - you will find ListView faster.
I didn't have git installed, but deleting the .git folder worked!
Thanks for your help!
Interesting - I guess you downloaded these files as a git repo. Maybe the git plugin should only be active when git is installed?
I had this issue and I had .git folder in my home as well. Deleting it solved the problem
Not obvious how to fix this - need to detect case where there are git repositories present but git is not installed.