Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !887

Merged
Created Jun 03, 2012 by Administrator@rootOwner

Improve performance when handling large repo's

  • Overview 4
  • Commits 2
  • Changes 2

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.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/nathanvda/improve_tag_count