-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Make SharedTrieCache/LocalTrieCache work with entire state in memory #7682
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
0af325f
Make local-cache unlimited
alexggh f326e8c
Remove unrelated changes
alexggh 7799138
Create unlimited cache only in onchain context
alexggh a8dc8c1
Move writing back to the shared_cache from drop to a worker thread
alexggh c03011a
Fix build
alexggh 6be7f6d
Add manual trie flush
alexggh 94c7f8d
Fix on import
alexggh 37a5a87
Merge branch 'master' into alexggh/local_cache_unlimited
alexggh c90d5eb
Some fixes
alexggh 96fab66
Cosmetic changes
alexggh 296e6f5
Merge remote-tracking branch 'origin/master' into alexggh/local_cache…
alexggh ad1aa3f
Remove unneded changes
alexggh c267986
Add metrics to the trie cache
alexggh 596eaa2
Voluntarily give the lock in untrusted paths
alexggh b1ad910
Add unittest for cache
alexggh 39c0ad4
Merge remote-tracking branch 'origin/master' into alexggh/local_cache…
alexggh 99c758a
Update substrate/client/api/src/backend.rs
alexggh 3e495e3
Update substrate/client/api/src/backend.rs
alexggh 3ad7962
Update substrate/client/api/src/backend.rs
alexggh 6c3964f
Update substrate/primitives/trie/src/cache/shared_cache.rs
alexggh bc17fa0
Merge remote-tracking branch 'origin/master' into alexggh/local_cache…
alexggh d1e73c5
Make cache trusted
alexggh ca8f97e
Rename local_cache to untrusted
alexggh 5228fbf
Rename default in untrusted
alexggh 9e2e204
Review suggestions
alexggh f14dbbd
Move snapshots structs in metrics
alexggh 8245a80
Use a trusted local cache
alexggh d4504d0
Drop cli flag use_trusted_local_cache
alexggh c983020
Update basic_authorship.rs
alexggh 0906d98
Make cargo fmt happy
alexggh 418ab9c
Make taplo happy
alexggh d2661f9
Add prdoc
alexggh 858b9dc
Merge remote-tracking branch 'origin/master' into alexggh/local_cache…
alexggh 448b498
Merge branch 'master' into alexggh/local_cache_unlimited
alexggh 9ca77ea
Update substrate/primitives/trie/src/cache/shared_cache.rs
alexggh 08c74e5
Address review feedback
alexggh f37537a
Merge branch 'master' into alexggh/local_cache_unlimited
alexggh 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
Rename local_cache to untrusted
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
- Loading branch information
commit ca8f97e97334f6eba78509101f5be4ba6a4acc95
There are no files selected for viewing
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
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.