Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

plumbing: the commit walker can skip externally-seen commits #586

Merged
merged 1 commit into from
Sep 12, 2017

Conversation

strib
Copy link
Contributor

@strib strib commented Sep 9, 2017

When the revlist is computing the set of hashes needed to transfer, it doesn't need to walk over commits it has already processed. So, it can instruct the commit walker not to walk those commits by passing in
its own seen map.

For a 36K object repo, this brought the time for revlist.Objects down from 50s to 30s.

When the revlist is computing the set of hashes needed to transfer, it
doesn't need to walk over commits it has already processed.  So, it
can instruct the commit walker not to walk those commits by passing in
its own `seen` map.

For a 36K object repo, this brought the time for `revlist.Objects`
down from 50s to 30s.
@codecov
Copy link

codecov bot commented Sep 12, 2017

Codecov Report

Merging #586 into master will decrease coverage by 0.16%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #586      +/-   ##
==========================================
- Coverage   78.32%   78.16%   -0.17%     
==========================================
  Files         130      130              
  Lines       10092    10344     +252     
==========================================
+ Hits         7905     8085     +180     
- Misses       1342     1414      +72     
  Partials      845      845
Impacted Files Coverage Δ
repository.go 73.93% <100%> (ø) ⬆️
plumbing/revlist/revlist.go 70.58% <100%> (-2.36%) ⬇️
plumbing/object/commit_walker.go 81.81% <100%> (+2.5%) ⬆️
remote.go 75.29% <100%> (+0.71%) ⬆️
plumbing/transport/ssh/common.go 20.54% <0%> (-45.21%) ⬇️
plumbing/transport/ssh/auth_method.go 31.57% <0%> (-22.81%) ⬇️
plumbing/transport/server/server.go 67.27% <0%> (+1.53%) ⬆️
config/config.go 89.65% <0%> (+2.15%) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bb3217c...841b62a. Read the comment docs.

@mcuadros mcuadros merged commit 8cb0215 into src-d:master Sep 12, 2017
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants