Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

VerifyFinalizedConsistency - return early when canonical #7628

Merged
merged 2 commits into from Oct 23, 2020

Conversation

terencechain
Copy link
Member

This PR added a condition to satisfy that canonical root implies to have the same ancestor as finalized check point. The benefit of this is savings of cpu cycles. Before and after graphs 馃憞

Screen Shot 2020-10-22 at 9 01 29 AM
Screen Shot 2020-10-23 at 10 57 18 AM

Verified run time and p2p messages counter in metric

@terencechain terencechain added Ready For Review A pull request ready for code review cpu-profile-improvement labels Oct 23, 2020
@terencechain terencechain requested a review from a team as a code owner October 23, 2020 18:08
@terencechain terencechain self-assigned this Oct 23, 2020
@prestonvanloon prestonvanloon added this to the v1.0.0-beta milestone Oct 23, 2020
@codecov
Copy link

codecov bot commented Oct 23, 2020

Codecov Report

Merging #7628 into master will increase coverage by 0.00%.
The diff coverage is 50.00%.

@@           Coverage Diff           @@
##           master    #7628   +/-   ##
=======================================
  Coverage   61.87%   61.88%           
=======================================
  Files         422      422           
  Lines       29802    29719   -83     
=======================================
- Hits        18441    18391   -50     
+ Misses       8429     8412   -17     
+ Partials     2932     2916   -16     

@prylabs-bulldozer prylabs-bulldozer bot merged commit ebb3fa7 into master Oct 23, 2020
@delete-merged-branch delete-merged-branch bot deleted the exit-early branch October 23, 2020 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants