-
Notifications
You must be signed in to change notification settings - Fork 5.5k
sort storages by slot before scan #17411
Conversation
700cd92 to
ca216bf
Compare
brooksprumo
left a comment
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'm assuming the sorting helps speed up the scan? Also assuming the speed up to the scan is greater than the time to sort, yes?
brooksprumo
left a comment
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.
My comments are mostly questions :)
282c98a to
95da609
Compare
Codecov Report
@@ Coverage Diff @@
## master #17411 +/- ##
========================================
Coverage 82.7% 82.8%
========================================
Files 428 429 +1
Lines 119964 120063 +99
========================================
+ Hits 99325 99435 +110
+ Misses 20639 20628 -11 |
brooksprumo
left a comment
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.
Looks good! Just the two questions/comments.
brooksprumo
left a comment
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.
Re-approving since mergify removed it.
* sort storages by slot before scan * fix return value (cherry picked from commit ef5169f) # Conflicts: # runtime/src/accounts_db.rs
* sort storages by slot before scan * fix return value (cherry picked from commit ef5169f) # Conflicts: # runtime/src/accounts_db.rs
* sort storages by slot before scan * fix return value (cherry picked from commit ef5169f) # Conflicts: # runtime/src/accounts_db.rs Co-authored-by: Jeff Washington (jwash) <[email protected]>
Problem
2 different use cases have emerged where it is useful to have storages sorted by slot.
Summary of Changes
Sort storages by slot.
Fixes #