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

Batch account lookups for sparse ledger creation #14527

Merged
merged 56 commits into from
Dec 5, 2023

Conversation

mrmr1993
Copy link
Member

@mrmr1993 mrmr1993 commented Nov 7, 2023

Checklist:

  • Dependency versions are unchanged
    • Notify Velocity team if dependencies must change in CI
  • Modified the current draft of release notes with details on what is completed or incomplete within this project
  • Document code purpose, how to use it
    • Mention expected invariants, implicit constraints
  • Tests were added for the new behavior
    • Document test purpose, significance of failures
    • Test names should reflect their purpose
  • All tests pass (CI will check this if you didn't)
  • Serialized types are in stable-versioned modules
  • Does this close issues? List them

@mrmr1993
Copy link
Member Author

mrmr1993 commented Nov 7, 2023

!ci-build-me

@mrmr1993
Copy link
Member Author

mrmr1993 commented Nov 7, 2023

!ci-nightly-me

@mrmr1993
Copy link
Member Author

mrmr1993 commented Nov 8, 2023

!ci-build-me

@mrmr1993
Copy link
Member Author

mrmr1993 commented Nov 8, 2023

!ci-nightly-me

Either.first (location, Some account)
| None ->
Either.second location )
let locations_with_locations_rev, leftover_locations_rev =
Copy link
Member

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

@mrmr1993 mrmr1993 marked this pull request as ready for review November 21, 2023 18:20
@mrmr1993 mrmr1993 requested a review from a team as a code owner November 21, 2023 18:20
@nholland94
Copy link
Member

!ci-build-me

@georgeee georgeee force-pushed the feature/batch-account-location-lookups branch from 187ec15 to c45bc86 Compare November 27, 2023 15:39
@georgeee georgeee force-pushed the feature/batch-account-lookups branch from eb3db50 to 2fbe1c5 Compare November 27, 2023 15:51
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 =
Copy link
Member

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

@georgeee georgeee force-pushed the feature/batch-account-location-lookups branch from 4123438 to b992841 Compare November 28, 2023 17:18
@georgeee georgeee force-pushed the feature/batch-account-lookups branch from 2fbe1c5 to daa60aa Compare November 28, 2023 17:21
@nholland94
Copy link
Member

!ci-build-me

@georgeee georgeee force-pushed the feature/batch-account-location-lookups branch from b992841 to f8c7017 Compare November 28, 2023 20:04
@georgeee georgeee force-pushed the feature/batch-account-lookups branch from daa60aa to 4271394 Compare November 28, 2023 20:06
Base automatically changed from feature/batch-account-location-lookups to rampup December 5, 2023 00:19
@deepthiskumar
Copy link
Member

@deepthiskumar
Copy link
Member

!approved-for-mainnet

…-lookups

Batch merkle_path lookups in Sparse_ledger
…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
@deepthiskumar deepthiskumar merged commit 96dce55 into rampup Dec 5, 2023
2 checks passed
@deepthiskumar deepthiskumar deleted the feature/batch-account-lookups branch December 5, 2023 06:34
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.

5 participants