Skip to content

Commit ab4ce61

Browse files
authored
Increase value cache size (#3619)
## Motivation This is a bit of a workaround to some of the inefficiencies we see on ScyllaDB, but also doesn't hurt to have a slightly bigger cache, as the hit rate of it seems to be pretty good. ## Proposal Increase value cache size ## Test Plan CI + deployed a few networks with this ## Release Plan - Nothing to do / These changes follow the usual release cycle.
1 parent cd5c836 commit ab4ce61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linera-core/src/value_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use lru::LruCache;
1717
use {linera_base::prometheus_util::register_int_counter_vec, prometheus::IntCounterVec};
1818

1919
/// The default cache size.
20-
pub const DEFAULT_VALUE_CACHE_SIZE: usize = 1000;
20+
pub const DEFAULT_VALUE_CACHE_SIZE: usize = 10_000;
2121

2222
/// A counter metric for the number of cache hits in the [`ValueCache`].
2323
#[cfg(with_metrics)]

0 commit comments

Comments
 (0)