Memoize Git::Repository#has_visible_content?
This is called repeatedly when viewing a merge request, and this should improve performance significantly by avoiding shelling out to git every time. This should help https://gitlab.com/gitlab-com/infrastructure/issues/4027.
Showing
Please register or sign in to comment