Skip to content

Memoize Git::Repository#has_visible_content?

Stan Hu requested to merge sh-memoize-repository-empty into master

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.

Merge request reports