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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uses IntSet for RootsTracker::uncleaned_roots #33524

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

brooksprumo
Copy link
Contributor

@brooksprumo brooksprumo commented Oct 4, 2023

Problem

#33521 added solana-nohash-hasher. RootsTracker::uncleaned_roots is a list of slots, and doesn't need to be cryptographically secure. This will make inserting/looking up roots to clean faster.

Summary of Changes

Uses IntSet for RootsTracker::uncleaned_roots

@brooksprumo brooksprumo added the noCI Suppress CI on this Pull Request label Oct 4, 2023
@brooksprumo brooksprumo self-assigned this Oct 4, 2023
@brooksprumo brooksprumo added CI Pull Request is ready to enter CI and removed noCI Suppress CI on this Pull Request labels Oct 4, 2023
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label Oct 4, 2023
@codecov
Copy link

codecov bot commented Oct 4, 2023

Codecov Report

Merging #33524 (d152d68) into master (ec1115e) will decrease coverage by 0.2%.
Report is 1003 commits behind head on master.
The diff coverage is 88.0%.

@@            Coverage Diff            @@
##           master   #33524     +/-   ##
=========================================
- Coverage    81.8%    81.7%   -0.2%     
=========================================
  Files         766      803     +37     
  Lines      209028   217899   +8871     
=========================================
+ Hits       171148   178176   +7028     
- Misses      37880    39723   +1843     

@brooksprumo brooksprumo marked this pull request as ready for review October 4, 2023 17:08
Copy link
Contributor

@HaoranYi HaoranYi left a comment

Choose a reason for hiding this comment

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

Lgtm.

@brooksprumo brooksprumo merged commit 5a99568 into solana-labs:master Oct 4, 2023
16 checks passed
@brooksprumo brooksprumo deleted the nohash/roots-tracker branch October 4, 2023 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants