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

Fixes BankFrom.*Timings #34249

Merged

Conversation

brooksprumo
Copy link
Contributor

@brooksprumo brooksprumo commented Nov 28, 2023

Problem

The BankFromArchive/DirTimings, and everything touching it, irks me. The names a sometimes unnecessarily verbose, or terse; sometimes grammatically inconsistent; sometimes strangely ordered; sometimes poorly documented. Since I look at this code somewhat often, I'd like it to be nicer.

Summary of Changes

  • BankFromArchiveTimings -> BankFromArchivesTimings
  • reorder and standardize fields
  • rename metrics
  • remove unused/duplicate BankFrom.*Timings that were also in runtime/src/snapshot_utils.rs
  • rename rebuild_storages_from_snapshot_dir(), and fixup the documentation

@brooksprumo brooksprumo self-assigned this Nov 28, 2023
@brooksprumo brooksprumo marked this pull request as ready for review November 28, 2023 16:31
@brooksprumo
Copy link
Contributor Author

@apfitzge - requested your review since you've reviewed this code previously (and all the fastboot stuff in general)
@steviez - requested your review since you're the only other person that might look at these metrics

Copy link

codecov bot commented Nov 28, 2023

Codecov Report

Merging #34249 (8e17b1b) into master (b741c9c) will increase coverage by 0.0%.
Report is 4 commits behind head on master.
The diff coverage is 60.0%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #34249   +/-   ##
=======================================
  Coverage    81.9%    81.9%           
=======================================
  Files         819      819           
  Lines      219387   219369   -18     
=======================================
+ Hits       179690   179742   +52     
+ Misses      39697    39627   -70     

Copy link
Contributor

@apfitzge apfitzge left a comment

Choose a reason for hiding this comment

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

lgtm. New names seem better to me.

Copy link
Contributor

@steviez steviez left a comment

Choose a reason for hiding this comment

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

I'm all for it!

@brooksprumo brooksprumo merged commit b9ef204 into solana-labs:master Nov 28, 2023
32 checks passed
@brooksprumo brooksprumo deleted the snapshot/bank-from-timings branch November 28, 2023 18:06
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