-
Notifications
You must be signed in to change notification settings - Fork 548
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
Batch account lookups for sparse ledger creation #14527
Conversation
!ci-build-me |
!ci-nightly-me |
db2a399
to
ae81c53
Compare
!ci-build-me |
!ci-nightly-me |
Either.first (location, Some account) | ||
| None -> | ||
Either.second location ) | ||
let locations_with_locations_rev, leftover_locations_rev = |
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 suggest using the version
!ci-build-me |
187ec15
to
c45bc86
Compare
eb3db50
to
2fbe1c5
Compare
src/lib/mina_ledger/sparse_ledger.ml
Outdated
let path, acct = Ledger.create_empty_exn ledger key in | ||
(key :: new_keys, add_path sl path key acct) ) | ||
~init:([], of_ledger_root ledger) | ||
let rec go (new_keys, sl) locations accounts = |
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.
Could be better structured, but will be amended in a PR up the PR chain
4123438
to
b992841
Compare
2fbe1c5
to
daa60aa
Compare
!ci-build-me |
b992841
to
f8c7017
Compare
daa60aa
to
4271394
Compare
…d-merkle-masks-for-staged-ledger
…eature/merkle-mask-preloading
…k-empty-account-preloading
…ure/sparse-ledger-of-subset-no-mutability
…ture/sparse-ledger-wide-merkle-paths
nightly pipeline passes https://buildkite.com/o-1-labs-2/mina-end-to-end-nightlies/builds/877#_ |
!approved-for-mainnet |
…-lookups Batch merkle_path lookups in Sparse_ledger
Replace tables with maps in merkle masks
…e-merkle-paths Use 'wide merkle paths' to optimize `Sparse_ledger.of_ledger_subset_exn`
…subset-no-mutability Avoid ledger copy and mutation in `Sparse_ledger.of_ledger_subset_exn`
…-account-preloading Allow merkle masks to handle empty accounts directly
…ading Preload accounts into merkle path for staged ledger diff application
…asks-for-staged-ledger Performance improvement: fetch merkle paths from masks instead of disk
Checklist: