-
Notifications
You must be signed in to change notification settings - Fork 549
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
Avoid unnecessary hashing in transaction application #14643
Closed
georgeee
wants to merge
1
commit into
georgeee/defer-hashing-in-staged-ledger-diff-application
from
georgeee/optimize-hash-computation
Closed
Avoid unnecessary hashing in transaction application #14643
georgeee
wants to merge
1
commit into
georgeee/defer-hashing-in-staged-ledger-diff-application
from
georgeee/optimize-hash-computation
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ac44c5c
to
d05242c
Compare
5045183
to
9adcdf4
Compare
Base automatically changed from
georgeee/avoid-slowdown-of-multiple-masks
to
rampup
December 7, 2023 20:27
9adcdf4
to
0d0f7fd
Compare
!ci-build-me |
!ci-nightly-me |
034388c
to
12cb6b7
Compare
!ci-build-me |
!ci-nightly-me |
4014c48
to
05c6ea5
Compare
Confirm 2x-2.5x performance improvement of staged ledger diff application as measured by #14582 |
!ci-build-me |
cf02bd8
to
349cebb
Compare
03e7683
to
d8b44f3
Compare
1. Preload empty hash paths (ensures no hash db lookups even in edge cases) 2. Use `t.current_location` instead of `last_filled t` and check against `non_existent_accounts` in `get_or_create_account`
349cebb
to
3dc68ec
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains three changes:
Ledger.commit
Ledger.unsafe_preload_accounts_from_parent
is usedTotal improvement of this PR is around 70% comparing to base branch.
Explain how you tested your changes:
test-apply
tool from Add tool to test application of txs to ledger #14582 (measure performance gains with it and verified absence of DB accesses during transaction handling) together with Handle non-existent accounts in preload #15978Checklist: