Gitlab::Git code is called by quite a few Rails actions while performing rather badly

Using the script found at https://gitlab.com/gitlab-org/inspector-influx/blob/master/lib/common_methods.rb I got the following output:

Method                                Actions  Average  Minimum  Maximum
Gitlab::Git::Blob.find                42       1070.58  100.3    9362.41
Gitlab::Git::Commit.find              65       1045.16  100.35   4379.05
Gitlab::Git::Commit.decorate          43       794.67   108.79   3697.87
Gitlab::Git::Blob.find_entry_by_path  23       526.78   100.74   1840.37

This indicates these particular methods are called by quite a number of Rails actions while in most cases performing rather badly. Performance can be impacted by the code itself, the NFS, or both.

Edited Sep 02, 2020 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading