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

ledger refactoring: Ordered resource deltas - part 1 #3292

Conversation

algorandskiy
Copy link
Contributor

Summary

MergeInMatchingAccounts requires addresses per resource but storing addresses there makes the code much slower.
Lets see if MergeInMatchingAccounts can be eliminated altogether on the schema switch.

Test Plan

Added new test for triggering missed base account data in StateDelta for some application resources modification.

MergeInMatchingAccounts requires addresses per resource
but storing addresses there makes the code much slower.
Lets see if MergeInMatchingAccounts can be eliminated altogether
on the schema switch
@codecov-commenter
Copy link

codecov-commenter commented Dec 8, 2021

Codecov Report

Merging #3292 (d76cc1a) into feature/unlimited-assets (7ec5667) will decrease coverage by 10.68%.
The diff coverage is 0.00%.

Impacted file tree graph

@@                      Coverage Diff                      @@
##           feature/unlimited-assets    #3292       +/-   ##
=============================================================
- Coverage                     46.92%   36.24%   -10.69%     
=============================================================
  Files                           371      369        -2     
  Lines                         61511    61603       +92     
=============================================================
- Hits                          28865    22327     -6538     
- Misses                        29245    36320     +7075     
+ Partials                       3401     2956      -445     
Impacted Files Coverage Δ
ledger/ledgercore/statedelta.go 0.00% <0.00%> (-6.65%) ⬇️
util/condvar/timedwait.go 0.00% <0.00%> (-100.00%) ⬇️
data/transactions/payset.go 0.00% <0.00%> (-100.00%) ⬇️
ledger/internal/assetcow.go 0.00% <0.00%> (-100.00%) ⬇️
crypto/merklearray/worker.go 0.00% <0.00%> (-100.00%) ⬇️
crypto/compactcert/structs.go 0.00% <0.00%> (-100.00%) ⬇️
agreement/agreementtest/keyManager.go 0.00% <0.00%> (-100.00%) ⬇️
daemon/algod/api/server/lib/middlewares/auth.go 0.00% <0.00%> (-100.00%) ⬇️
agreement/agreementtest/simulate.go 0.00% <0.00%> (-87.68%) ⬇️
util/metrics/service.go 0.00% <0.00%> (-87.10%) ⬇️
... and 164 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7ec5667...d76cc1a. Read the comment docs.

@algorandskiy algorandskiy changed the title Ordered resource deltas ledger refactoring: Ordered resource deltas - part 1 Dec 9, 2021
Copy link
Contributor

@tsachiherman tsachiherman left a comment

Choose a reason for hiding this comment

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

Looks good - two tiny requests. I suppose it will render bigger changes to my PR before merging.

ledger/ledgercore/totals_test.go Outdated Show resolved Hide resolved
ledger/ledgercore/statedelta.go Outdated Show resolved Hide resolved
@tsachiherman tsachiherman merged commit 8abf1ed into algorand:feature/unlimited-assets Dec 10, 2021
tsachiherman pushed a commit that referenced this pull request Dec 10, 2021
## Summary

This is follow up PR for #3292 

## Test Plan

This is mostly existing tests modification
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants