Readjust auth_chain cache default size and scalars.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -2932,7 +2932,7 @@ fn default_pdu_cache_capacity() -> u32 { parallelism_scaled_u32(10_000).saturati
|
||||
fn default_cache_capacity_modifier() -> f64 { 1.0 }
|
||||
|
||||
fn default_auth_chain_cache_capacity() -> u32 {
|
||||
parallelism_scaled_u32(10_000).saturating_add(100_000)
|
||||
parallelism_scaled_u32(100_000).saturating_add(50_000)
|
||||
}
|
||||
|
||||
fn default_shorteventid_cache_capacity() -> u32 {
|
||||
|
||||
@@ -39,8 +39,8 @@ pub(super) static MAPS: &[Descriptor] = &[
|
||||
cache_disp: CacheDisp::SharedWith("shorteventid_authchain"),
|
||||
index_size: 512,
|
||||
block_size: 4096,
|
||||
key_size_hint: Some(8),
|
||||
val_size_hint: Some(1024),
|
||||
key_size_hint: Some(8), // intentionally match shorteventid_authchain
|
||||
val_size_hint: Some(256),
|
||||
..descriptor::RANDOM_CACHE
|
||||
},
|
||||
Descriptor {
|
||||
@@ -290,7 +290,7 @@ pub(super) static MAPS: &[Descriptor] = &[
|
||||
name: "shorteventid_authchain",
|
||||
cache_disp: CacheDisp::SharedWith("authchainkey_authchain"),
|
||||
key_size_hint: Some(8),
|
||||
val_size_hint: Some(1024),
|
||||
val_size_hint: Some(256),
|
||||
index_size: 512,
|
||||
block_size: 4096,
|
||||
..descriptor::SEQUENTIAL
|
||||
|
||||
Reference in New Issue
Block a user