Branches search is slow on projects with many branches

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Summary

On gitlab-org/gitlab, searching for a branch takes a long time.

branches_search

At the time of this writing, the project has over 17,000 branches and this search is implemented as an O(n) search in GitRefsFinder, which could be the reason behind the slowness. This could potentially be optimized.

Edited Jun 27, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading