Do not update/delete: Banner broadcast message test data
Do not update/delete: Notification broadcast message test data
Fetch the merged branches at once, instead of checking it one by one in the view. We don't cache this yet because this would already much improve the performance.
Previously we could be checking with Gitaly, but with this change we would be using git
command line. Could this kill the filesystem?
A naive test against a particularly large repository:
begin
now = Time.now
branches.map{ |b| repository.merged_to_root_ref?(b.name) }
Time.now - now
end # 8.265830782
Around 10 times faster:
begin
now = Time.now
repository.merged_branches(branches.map(&:name))
Time.now - now
end # 0.807405397
This should make the branches page usable.
This is a follow up from https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/14678#note_42548019