Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

implement ancestors as rolling bit field #17482

Merged
merged 1 commit into from
Jun 2, 2021

Conversation

jeffwashington
Copy link
Contributor

@jeffwashington jeffwashington commented May 25, 2021

Problem

ancestors has gone from HashMap<Slot, usize> to HashSet

Summary of Changes

implement Ancestors in a more performant and straightforward manner using the RollingBitField we use for roots.
Fixes #

@jeffwashington jeffwashington force-pushed the ancestors branch 6 times, most recently from cb1b479 to 63e23e1 Compare May 26, 2021 17:40
@codecov
Copy link

codecov bot commented May 26, 2021

Codecov Report

Merging #17482 (3d78e84) into master (a3240ae) will increase coverage by 0.0%.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##           master   #17482   +/-   ##
=======================================
  Coverage    82.6%    82.7%           
=======================================
  Files         427      427           
  Lines      119537   119462   -75     
=======================================
- Hits        98851    98798   -53     
+ Misses      20686    20664   -22     

@jeffwashington jeffwashington force-pushed the ancestors branch 3 times, most recently from bb73c44 to a662584 Compare May 28, 2021 17:17
@jeffwashington jeffwashington requested a review from carllin May 28, 2021 20:43
@jeffwashington jeffwashington marked this pull request as ready for review May 28, 2021 20:44
Copy link
Contributor

@sakridge sakridge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jeffwashington jeffwashington merged commit eec996b into solana-labs:master Jun 2, 2021
mergify bot pushed a commit that referenced this pull request Jun 2, 2021
jeffwashington added a commit that referenced this pull request Jun 3, 2021
mergify bot added a commit that referenced this pull request Jun 3, 2021
(cherry picked from commit eec996b)

Co-authored-by: Jeff Washington (jwash) <[email protected]>
@brooksprumo brooksprumo mentioned this pull request Aug 23, 2021
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.

2 participants