Skip to content

Improve performance when handling large repo's

Created by: nathanvda

This is related to #842 (closed), and should fix it. In grit there was no real method to count tags or branches. So to show the counts in gitlab, we performed repo.tags.count, which builds a complete array just to take the size of it.

I created a pull-request for grit:https://github.com/mojombo/grit/pull/121 where I added methods tag_count and branch_count on a repo which are a lot faster. Unfortunately I did the pull-request on mojombo's repo, and not gitlabhq's version of grit. If you pull those changes into your version of grit, you can then pull in these changes to make rendering much-much-much faster.

If there is anything I can do to make pulling in the grit-changes easier, please tell me.

Hope this helps.

Merge request reports

Loading