summaryrefslogtreecommitdiff
path: root/config/routes/project.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-10-27 15:55:19 +0000
committerRémy Coutable <remy@rymai.me>2017-10-27 15:55:19 +0000
commitdfd6c3f824ada5558546b809fd32468325788b94 (patch)
treecc5f65076fc0acc1b5ff191d502a706e797544af /config/routes/project.rb
parent7c4da276d34e008b5aa86971cfd627a813d84df7 (diff)
parent57d7ed05d96928f7e33135e7397bdd6b3b0d25e0 (diff)
downloadgitlab-ce-dfd6c3f824ada5558546b809fd32468325788b94.tar.gz
Merge branch 'use-git-branch-merged' into 'master'
Fetch the merged branches at once. Checking it one by one in the view. We don't cache this yet because this would already much improve the performance. A naive test against a particularly large repository: ``` ruby begin now = Time.now branches.map{ |b| r.merged_to_root_ref?(b.name) } Time.now - now end # 8.265830782 ``` Around 10 times faster: ``` ruby begin now = Time.now r.merged_branches(branches.map(&:name)) Time.now - now end # 0.807405397 ``` This should make the branches page usable. See merge request gitlab-org/gitlab-ce!14729
Diffstat (limited to 'config/routes/project.rb')
0 files changed, 0 insertions, 0 deletions