-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
generate_index passes batches of items #17290
generate_index passes batches of items #17290
Conversation
e8c211b
to
1c61cd6
Compare
look at total_us
lemond colo machine, snapshot-77779424-AP7QKgrw31e5tBhtPqxejbJbYU8rs6LA97L1Qq7gqpdX.tar.zst |
Codecov Report
@@ Coverage Diff @@
## master #17290 +/- ##
=======================================
Coverage 82.6% 82.7%
=======================================
Files 423 423
Lines 118111 118119 +8
=======================================
+ Hits 97663 97685 +22
+ Misses 20448 20434 -14 |
b39d1f0
to
b6ff951
Compare
ffedefe
to
5982d52
Compare
&mut w_account_maps, | ||
new_item, | ||
); | ||
if account_info.is_zero_lamport() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left this where it was in this pr. It doesn't appear to make a big difference in metrics.
5982d52
to
4e2297b
Compare
Problem
Validator startup time is commonly experienced. Generating the index is a large part of that time.
Summary of Changes
Pass account info in a batch. Then, calculate all initial map values prior to acquiring write lock.
Fixes #