diff options
author | Rémy Coutable <remy@rymai.me> | 2017-10-27 15:55:19 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-10-27 15:55:19 +0000 |
commit | dfd6c3f824ada5558546b809fd32468325788b94 (patch) | |
tree | cc5f65076fc0acc1b5ff191d502a706e797544af /GITALY_SERVER_VERSION | |
parent | 7c4da276d34e008b5aa86971cfd627a813d84df7 (diff) | |
parent | 57d7ed05d96928f7e33135e7397bdd6b3b0d25e0 (diff) | |
download | gitlab-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 'GITALY_SERVER_VERSION')
0 files changed, 0 insertions, 0 deletions