Skip to content
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 Feb 20, 2025
f326e8c
Remove unrelated changes
alexggh Feb 24, 2025
7799138
Create unlimited cache only in onchain context
alexggh Feb 24, 2025
a8dc8c1
Move writing back to the shared_cache from drop to a worker thread
alexggh Feb 25, 2025
c03011a
Fix build
alexggh Mar 11, 2025
6be7f6d
Add manual trie flush
alexggh Mar 12, 2025
94c7f8d
Fix on import
alexggh Mar 12, 2025
37a5a87
Merge branch 'master' into alexggh/local_cache_unlimited
alexggh Mar 12, 2025
c90d5eb
Some fixes
alexggh Mar 12, 2025
96fab66
Cosmetic changes
alexggh Mar 13, 2025
296e6f5
Merge remote-tracking branch 'origin/master' into alexggh/local_cache…
alexggh Apr 3, 2025
ad1aa3f
Remove unneded changes
alexggh Apr 3, 2025
c267986
Add metrics to the trie cache
alexggh Apr 8, 2025
596eaa2
Voluntarily give the lock in untrusted paths
alexggh Apr 8, 2025
b1ad910
Add unittest for cache
alexggh Apr 9, 2025
39c0ad4
Merge remote-tracking branch 'origin/master' into alexggh/local_cache…
alexggh Apr 9, 2025
99c758a
Update substrate/client/api/src/backend.rs
alexggh Apr 16, 2025
3e495e3
Update substrate/client/api/src/backend.rs
alexggh Apr 16, 2025
3ad7962
Update substrate/client/api/src/backend.rs
alexggh Apr 16, 2025
6c3964f
Update substrate/primitives/trie/src/cache/shared_cache.rs
alexggh Apr 16, 2025
bc17fa0
Merge remote-tracking branch 'origin/master' into alexggh/local_cache…
alexggh Apr 16, 2025
d1e73c5
Make cache trusted
alexggh Apr 17, 2025
ca8f97e
Rename local_cache to untrusted
alexggh Apr 17, 2025
5228fbf
Rename default in untrusted
alexggh Apr 17, 2025
9e2e204
Review suggestions
alexggh Apr 17, 2025
f14dbbd
Move snapshots structs in metrics
alexggh Apr 17, 2025
8245a80
Use a trusted local cache
alexggh Apr 17, 2025
d4504d0
Drop cli flag use_trusted_local_cache
alexggh Apr 17, 2025
c983020
Update basic_authorship.rs
alexggh Apr 17, 2025
0906d98
Make cargo fmt happy
alexggh Apr 17, 2025
418ab9c
Make taplo happy
alexggh Apr 17, 2025
d2661f9
Add prdoc
alexggh Apr 17, 2025
858b9dc
Merge remote-tracking branch 'origin/master' into alexggh/local_cache…
alexggh Apr 23, 2025
448b498
Merge branch 'master' into alexggh/local_cache_unlimited
alexggh Apr 25, 2025
9ca77ea
Update substrate/primitives/trie/src/cache/shared_cache.rs
alexggh Apr 28, 2025
08c74e5
Address review feedback
alexggh Apr 28, 2025
f37537a
Merge branch 'master' into alexggh/local_cache_unlimited
alexggh May 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Review suggestions
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
  • Loading branch information
alexggh committed Apr 17, 2025
commit 9e2e204194872a2383cdeccd3a5b25c07a5cba05
4 changes: 2 additions & 2 deletions substrate/primitives/trie/src/cache/shared_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,11 +629,11 @@ impl<H: Hasher> SharedTrieCacheInner<H> {
/// Returns a mutable reference to the [`TrieHitStats`].
pub(super) fn stats_add_snapshot(&mut self, snapshot: &TrieHitStatsSnapshot) {
self.stats.add_snapshot(&snapshot);
// Print trie cache every 60 seconds.
// Print trie cache stats every 60 seconds.
if self.previous_stats_dump.elapsed() > Duration::from_secs(60) {
self.previous_stats_dump = Instant::now();
let snapshot = self.stats.snapshot();
tracing::debug!(target: LOG_TARGET, "Shared trie cache stats node_cache {:} value_cache {:}", snapshot.node_cache, snapshot.value_cache);
tracing::trace!(target: LOG_TARGET, node_cache = %snapshot.node_cache, value_cache = %snapshot.value_cache, "Shared trie cache stats");
}
}
}
Expand Down