Readjust auth_chain cache default size and scalars.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2026-01-22 22:15:26 +00:00
parent c6c85374fa
commit 9d8525e7f7
2 changed files with 4 additions and 4 deletions

View File

@@ -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