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

revlist: do not revisit ancestors as long as all branches are visited #588

Merged

Conversation

erizocosmico
Copy link
Contributor

This change is the fixed version of the previous performance improvement that was reverted due to some bogus logic.
Now it's fixed and only stops the iteration if and only if all of the branches we've come across have been visited, being a branch a parent commit of a commit we've visited.

@mcuadros
Copy link
Contributor

@erizocosmico rebase

This change is the fixed version of the previous performance improvement
that was reverted due to some bogus logic.
Now it's fixed and only stops the iteration if and only if all of the
branches we've come across have been visited, being a branch a parent
commit of a commit we've visited.

Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
@erizocosmico erizocosmico force-pushed the perf/revlist-norevisit-ancestors-fixed branch from ded2146 to 5bb64f6 Compare September 12, 2017 11:37
@codecov
Copy link

codecov bot commented Sep 12, 2017

Codecov Report

Merging #588 into master will decrease coverage by 0.57%.
The diff coverage is 80%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #588      +/-   ##
==========================================
- Coverage    78.3%   77.73%   -0.58%     
==========================================
  Files         130      130              
  Lines       10123    10135      +12     
==========================================
- Hits         7927     7878      -49     
- Misses       1346     1419      +73     
+ Partials      850      838      -12
Impacted Files Coverage Δ
plumbing/revlist/revlist.go 72.16% <80%> (+1.57%) ⬆️
plumbing/transport/ssh/common.go 20.54% <0%> (-45.21%) ⬇️
plumbing/transport/ssh/auth_method.go 31.57% <0%> (-22.81%) ⬇️

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 8cb0215...5bb64f6. Read the comment docs.

@erizocosmico
Copy link
Contributor Author

Done @mcuadros

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

Successfully merging this pull request may close these issues.

None yet

2 participants