This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Introduce trie level cache and remove state cache #11407
Merged
Merged
Changes from all commits
Commits
Show all changes
179 commits
Select commit
Hold shift + click to select a range
d173ddf
trie state cache
cheme e810693
Also cache missing access on read.
cheme 2b7f400
fix comp
cheme 4426b99
bis
cheme edbe206
Merge branch 'master' into trie_state_cache
cheme 7bf75c3
fix
cheme b23b1a1
use has_lru
cheme d3d7c8c
remove local storage cache on size 0.
cheme 9d5e011
No cache.
cheme 6375499
local cache only
cheme b5e4111
trie cache and local cache
cheme bc98fa6
storage cache (with local)
cheme ab760ea
trie cache no local cache
cheme e3163fe
Merge branch 'master' into trie_state_cache
cheme 2c1886d
Merge branch 'master' into trie_state_cache
cheme 9d4005a
Add state access benchmark
bkchr 25ec204
Remove warnings etc
bkchr bec69a8
Merge remote-tracking branch 'cheme/trie_state_cache' into bkchr-stat…
bkchr 137d5bb
Add trie cache benchmark
bkchr 1dfc1e9
No extra "clone" required
bkchr c39a5d0
Change benchmark to use multiple blocks
bkchr 79530b3
Use patches
bkchr 779f911
Integrate shitty implementation
bkchr d7d72c5
Merge branch 'bkchr-state-access-benchmark' of github.com:paritytech/…
bkchr 8ae59d3
More stuff
bkchr 3300dbc
Merge branch 'bkchr-state-access-benchmark' of github.com:paritytech/…
bkchr 3c7d760
Revert "Merge branch 'master' into trie_state_cache"
bkchr 610cf0a
Improve benchmark
bkchr a76ed8c
Adapt to latest changes
bkchr 24f4a00
Adapt to changes in trie
bkchr 9b79824
Add a test that uses iterator
bkchr e4e9a7e
Start fixing it
bkchr 45fb3ad
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr 5348ac5
Remove obsolete file
bkchr 3bba508
Make it compile
bkchr a20ddee
Start rewriting the trie node cache
bkchr 3804b69
More work on the cache
bkchr 254c99a
More docs and code etc
bkchr 103e33a
Make data cache an optional
bkchr 81a37b0
Tests
bkchr b625e6f
Remove debug stuff
bkchr 55b19d4
Recorder
bkchr 1b2f2be
Some docs and a simple test for the recorder
bkchr 362edc3
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr e4dbf24
Compile fixes
bkchr 846b39a
Make it compile
bkchr 3956b38
More fixes
bkchr 10c691c
More fixes
bkchr 325298d
Fix fix fix
bkchr eb45077
Make sure cache and recorder work together for basic stuff
bkchr ce2c0f3
Test that data caching and recording works
bkchr 955db3f
Test `TrieDBMut` with caching
bkchr 900412f
Try something
bkchr 625c7d4
Fixes, fixes, fixes
bkchr 4a3f788
Forward the recorder
bkchr cc27eef
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr c41c62a
Make it compile
bkchr 504dc8b
Use recorder in more places
bkchr a720527
Switch to new `with_optional_recorder` fn
bkchr 2289c32
Refactor and cleanups
bkchr 4ebf0e5
Move `ProvingBackend` tests
bkchr 93c23b5
Simplify
bkchr c7eeba0
Move over all functionality to the essence
bkchr cfc232a
Fix compilation
bkchr 8003510
Implement estimate encoded size for StorageProof
bkchr 2f0b73d
Start using the `cache` everywhere
bkchr d6ca68b
Use the cache everywhere
bkchr 2b6c40b
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr b5bd183
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr b7a9796
Fix compilation
bkchr d459b82
Fix tests
bkchr 5fc361f
Adds `TrieBackendBuilder` and enhances the tests
bkchr c26880c
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr 58ae53d
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr 57af73d
Ensure that recorder drain checks that values are found as expected
bkchr 784cc6e
Switch over to `TrieBackendBuilder`
bkchr ec7d567
Start fixing the problem with child tries and recording
bkchr b7d36a3
Fix recording of child tries
bkchr d0f81da
Make it compile
bkchr 9e3565c
Overwrite `storage_hash` in `TrieBackend`
bkchr 176b681
Add `storage_cache` to the benchmarks
bkchr bf0c130
Fix `no_std` build
bkchr 4219edc
Speed up cache lookup
bkchr 94d8a60
Extend the state access benchmark to also hash a runtime
bkchr 6c0e149
Fix build
bkchr 7d6f00e
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr 731667f
Fix compilation
bkchr fab5772
Rewrite value cache
bkchr ea56461
Add lru cache
bkchr bd097d4
Ensure that the cache lru works
bkchr 8e1bb67
Value cache should not be optional
bkchr f317a48
Add support for keeping the shared node cache in its bounds
bkchr 33fa5e0
Make the cache configurable
bkchr 55844e8
Check that the cache respects the bounds
bkchr 151fca7
Adds a new test
bkchr 0939285
Fixes
bkchr c87c095
Docs and some renamings
bkchr d8c076e
More docs
bkchr 00f28b5
Start using the new recorder
bkchr 281e971
Fix more code
bkchr 01b30db
Take `self` argument
bkchr ab90360
Remove warnings
bkchr b6feed4
Fix benchmark
bkchr de4871d
Fix accounting
bkchr 947a14e
Rip off the state cache
bkchr 6c47d9e
Start fixing fallout after removing the state cache
bkchr 7dff3ba
Make it compile after trie changes
bkchr 9b15bc4
Fix test
bkchr d8036ee
Add some logging
bkchr 453d5d5
Some docs
bkchr 3a101af
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr 4d1585f
Some fixups and clean ups
bkchr 6742481
Fix benchmark
bkchr 6c6e84d
Remove unneeded file
bkchr 4b29a1c
Use git for patching
bkchr e041798
Make CI happy
bkchr 4c69c8e
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr ae9c946
Update primitives/trie/Cargo.toml
bkchr 23f9913
Update primitives/state-machine/src/trie_backend.rs
bkchr fbdbdbc
Introduce new `AsTrieBackend` trait
bkchr 086d62e
Make the LocalTrieCache not clonable
bkchr 334ab90
Make it work in no_std and add docs
bkchr b9df86b
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr 907f916
Remove duplicate dependency
bkchr 704436b
Switch to ahash for better performance
bkchr 03b5ecd
Speedup value cache merge
bkchr f6f6793
Output errors on underflow
bkchr 0165314
Ensure the internal LRU map doesn't grow too much
bkchr 15d0752
Use const fn to calculate the value cache element size
bkchr 2f205c6
Remove cache configuration
bkchr 0b69785
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr 88b5aca
Fix
bkchr fa5e600
Clear the cache in between for more testing
bkchr b36a3b0
Try to come up with a failing test case
bkchr f16a39e
Make the test fail
bkchr 56cc4cb
Fix the child trie recording
bkchr f872917
Make everything compile after the changes to trie
bkchr 146f327
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr c40814a
Adapt to latest trie-db changes
bkchr 4e2b5e7
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr fdddfc5
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr 2741ff4
Fix on stable
bkchr 460a35e
Update primitives/trie/src/cache.rs
bkchr 288d39d
Fix wrong merge
bkchr f01264d
Docs
bkchr 31c7235
Fix warnings
bkchr 6c9a2eb
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr 1f20ea1
Cargo.lock
bkchr 668bcf1
Bump pin-project
bkchr 8cfddbe
Fix warnings
bkchr b704800
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr 22d8f90
Switch to released crate version
bkchr 12d86f2
More fixes
bkchr bb12455
Make clippy and rustdocs happy
bkchr 3b27df4
More clippy
bkchr 725dd6c
Print error when using deprecated `--state-cache-size`
bkchr 2a321d5
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr c370a5a
:facepalm:
bkchr 49ab24c
Fixes
bkchr 4d6c9aa
Merge branch 'master' into 11407
cheme 6559925
Fix storage_hash linkings
cheme 3a9ad84
Update client/rpc/src/dev/mod.rs
bkchr 451afc6
Review feedback
bkchr b9b833b
encode bound
cheme 5d062cf
Merge branch 'bkchr-state-access-benchmark' of github.com:paritytech/…
cheme ec70328
Rework the shared value cache
bkchr ce78429
Improve of the cache by merging the old and new solution
bkchr 7281e97
Merge remote-tracking branch 'origin/master' into bkchr-state-access-…
bkchr e0ccd1f
FMT
bkchr cc596dc
Please stop coming back all the time :crying:
bkchr 80bddd6
Update primitives/trie/src/cache/shared_cache.rs
bkchr e87117a
Fixes
bkchr 1f3fd7f
Make clippy happy
bkchr 5e8665a
Ensure we don't deadlock
bkchr 499c24a
Only use one lock to simplify the code
bkchr a1576fc
Do not depend on `Hasher`
bkchr 7863ee6
Fix tests
bkchr 0616c78
FMT
bkchr bd972a2
Clippy :facepalm:
bkchr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.