1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-06-27 16:35:59 +00:00

improvement: state info cache

This commit is contained in:
Timo Kösters 2021-08-15 06:46:00 +02:00 committed by Jonas Zohren
parent ac9dce2bdf
commit 6f58af0b99
2 changed files with 24 additions and 0 deletions

View file

@ -278,6 +278,7 @@ impl Database {
pdu_cache: Mutex::new(LruCache::new(100_000)),
auth_chain_cache: Mutex::new(LruCache::new(100_000)),
shorteventid_cache: Mutex::new(LruCache::new(1_000_000)),
stateinfo_cache: Mutex::new(LruCache::new(1000)),
},
account_data: account_data::AccountData {
roomuserdataid_accountdata: builder.open_tree("roomuserdataid_accountdata")?,