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

visit_duplicate_pubkeys_during_startup uses scan #33397

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

jeffwashington
Copy link
Contributor

@jeffwashington jeffwashington commented Sep 25, 2023

Problem

working on speeding up startup.
generating the index takes a long time.

Summary of Changes

Change duplicate pubkey scan to use scan(...), which is more efficient for iterating over many pubkeys.
Be sure to hide whitespace changes for diff.

Fixes #

@codecov
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

Merging #33397 (77df3b6) into master (997aa0a) will increase coverage by 0.0%.
Report is 4 commits behind head on master.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##           master   #33397   +/-   ##
=======================================
  Coverage    81.9%    81.9%           
=======================================
  Files         798      798           
  Lines      216579   216582    +3     
=======================================
+ Hits       177481   177523   +42     
+ Misses      39098    39059   -39     

@jeffwashington jeffwashington marked this pull request as ready for review September 25, 2023 18:18
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

@jeffwashington jeffwashington merged commit 40f5360 into solana-labs:master Sep 25, 2023
31 checks passed
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.

2 participants