-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Feature: Lazy load Git properties for better performance #13211
Feature: Lazy load Git properties for better performance #13211
Conversation
I was thinking that we'd only calculate for the git columns that are visible. Ideally we'd do this for non git columns as well but this is where we're seeing the biggest impact on performance. |
I think it is more efficient to retrieve all Git properties at the point of showing one Git property rather than retrieving a value each time, since accessing the Git repository has great impact on performance. |
By default we only show two of the Git columns, I guess with this change we should hide all of them for better performance. |
I see, it may take some time, but I'll see if there is a better way. |
How about hiding the columns by default (except for status)? |
Performance can be improved if commit information is not retrieved. The downside is, if status and commit information are retrieved at different times, the total processing time will increase because the repository is accessed twice. |
@yaira2 status and commit information can now be loaded at different times. Also, the default git column to display is now status only. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Unfortunately I'm still seeing a lot of performance issues in Git folders, is it possible it can be coming from the status bar as well? |
I don't know, but if you fix the layout to something other than the details layout and there are still performance problems, there might be other causes. Git properties shouldn't be loaded other than the details layout. |
I'm having a tough time reproducing the issue consistently, interestingly it's mainly happening in the same folder but even that doesn't repro consistently. |
Resolved / Related Issues
Closes Bug: Hidden Git columns are still being calculated #13182
Validation
How did you test these changes?
Git properties will not be loaded in the following cases.
* The layout is other than the details layout.
* All Git columns are hidden in the details layout.
When the above cases are no longer met, Git properties loading will begin.