improvement: state info cache

This commit is contained in:
Timo Kösters 2021-08-15 06:46:00 +02:00
parent 5bd5b41c70
commit a4310f840e
No known key found for this signature in database
GPG key ID: 356E705610F626D5
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")?,