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

single pass through each storage to populate info #33227

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

jeffwashington
Copy link
Contributor

Problem

speeding up index generation on startup

Summary of Changes

go from 2 passes 1 through each account in each append vec

Fixes #

@jeffwashington jeffwashington marked this pull request as ready for review September 12, 2023 22:02
@jeffwashington jeffwashington force-pushed the sp19_2 branch 3 times, most recently from 86ff5e4 to 08d0227 Compare September 13, 2023 13:53
@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Merging #33227 (b024953) into master (3ffd78f) will increase coverage by 0.0%.
Report is 6 commits behind head on master.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##           master   #33227   +/-   ##
=======================================
  Coverage    81.9%    81.9%           
=======================================
  Files         789      789           
  Lines      213988   213993    +5     
=======================================
+ Hits       175392   175409   +17     
+ Misses      38596    38584   -12     

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

storage_size_accounts_map_flatten_time.stop();

let mut timings = timings.lock().unwrap();
timings.storage_size_accounts_map_us += storage_size_accounts_map_time.as_us();
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: looks like these two timings can be removed, don't need to be done in this pr though.
it can be done with a follow up pr.

@jeffwashington jeffwashington merged commit 093ae61 into solana-labs:master Sep 13, 2023
16 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