-
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 location lookups for sparse ledger #14522
Conversation
!ci-build-me |
!ci-nightly-me |
!ci-build-me |
!ci-nightly-me |
Either.first (account_id, Some location) | ||
| None -> | ||
Either.second account_id ) | ||
let account_ids_with_locations_rev, leftover_account_ids_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
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 took your version, with some minor modifications (your version was reversing the resulting list, and had a some misnomers about the parent always being a database).
!ci-build-me |
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 a little bit concerned about performance of self_find_or_batch_lookup
. Does the performance gain of batch lookup justify going over the list of identifiers 3 times here? Is preserving the order of identifiers important? If it's not, then this could be done a little faster.
c3e8338
to
300c547
Compare
187ec15
to
c45bc86
Compare
!ci-build-me |
4123438
to
b992841
Compare
!ci-build-me |
b992841
to
f8c7017
Compare
!ci-build-me |
@Sventimir What's your performance concern exactly? The operation is O(n). Are you concerned about garbage collection pressure from the intermediate tuples? |
!ci-build-me |
!ci-nightly-me |
!ci-nightly-me |
This PR builds upon #14520. This adds batching for the location lookups in the sparse ledger conversion function.
Checklist: