improvement: better prev event fetching, perf improvements

This commit is contained in:
Timo Kösters
2021-08-17 16:06:09 +02:00
parent 75ba8bb565
commit bf7e019a68
4 changed files with 202 additions and 69 deletions

View File

@@ -278,6 +278,8 @@ 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)),
eventidshort_cache: Mutex::new(LruCache::new(1_000_000)),
statekeyshort_cache: Mutex::new(LruCache::new(1_000_000)),
stateinfo_cache: Mutex::new(LruCache::new(1000)),
},
account_data: account_data::AccountData {