Neil Alexander
0c63a8e0d3
Review comments @S7evinK
2022-07-08 09:38:22 +01:00
Neil Alexander
858cc61f92
Add back some lazy loading caching
2022-07-07 11:39:51 +01:00
Neil Alexander
bf18f7d5ad
Configurable cache sizees
2022-06-16 16:43:49 +01:00
Neil Alexander
8460f1dc08
Cost estimation fixes
2022-06-15 15:59:00 +01:00
Neil Alexander
c4c2c9d0ff
Try caching events
2022-06-14 16:45:13 +01:00
Neil Alexander
2f3cd2828e
Tweaks
2022-06-14 14:36:13 +01:00
Neil Alexander
8147d8367d
Determine mutability using deep equality
2022-06-14 14:29:59 +01:00
Neil Alexander
800dbbf9e4
Fix that some more
2022-06-14 14:10:48 +01:00
Neil Alexander
e614269bc3
More strict keyable interface
2022-06-14 14:08:09 +01:00
Neil Alexander
202b25a694
It's beautiful
2022-06-14 13:59:12 +01:00
Till
6493c0c0f2
Move LL cache ( #2429 )
2022-05-06 15:33:34 +02:00
Neil Alexander
bb2380c254
Allow specifying max age for caches ( #2239 )
...
* Allow specifying max age for caches
* Evict cache entry if it's found to be stale when we call Get
* Fix bugs
2022-03-01 16:59:52 +00:00
kegsay
352e63915f
msc2946: add federation cache ( #2238 )
2022-03-01 16:32:48 +00:00
Neil Alexander
131bedc1a1
Remove event type and state key caches ( #2200 )
...
* Don't proactively cache event types and state keys when we don't know if the transaction has persisted yet
* Remove event type and state key caches altogether
2022-02-18 10:58:41 +00:00
Neil Alexander
b891c00b09
Add RoomInfo cache, remove RoomServerRoomNIDsCache ( #1646 )
...
* Add RoomInfo cache, remove RoomServerRoomNID cache, ensure caches are thread-safe
* Don't panic if the roomInfo isn't known yet
* LRU package is already threadsafe
* Use RoomInfo cache to find room version if possible in Events()
* Adding comments about RoomInfoCache safety
2020-12-16 12:15:12 +00:00
Neil Alexander
5d65a879a5
Federation sender event cache ( #1614 )
...
* Cache federation sender events
* Store in the correct cache
* Update federation event cache
* Fix Unset
* Give EDUs same caching treatment as PDUs
* Make federationsender_cache_size configurable
* Default caches configuration
* Fix unit tests
* Revert "Fix unit tests"
This reverts commit 24eb5d2252 .
* Revert "Default caches configuration"
This reverts commit 464ecd1e64 .
* Revert "Make federationsender_cache_size configurable"
This reverts commit 4631f53241 .
2020-12-04 14:52:10 +00:00
Neil Alexander
c8b873abc8
Roomserver NID caches ( #1335 )
...
* Initial work on roomserver NID caches
* Give caches to roomserver storage
* Populate caches
* Fix bugs
* Fix WASM build
* Don't hit cache twice in RoomNIDExcludingStubs
* Store reverse room ID-room NID mapping, consult caches when assigning NIDs
2020-08-25 12:32:29 +01:00
Neil Alexander
079d8fe8fb
More key tweaks ( #1116 )
2020-06-12 11:07:26 +01:00
Neil Alexander
e7b19d2c70
More flexible caching ( #1101 )
2020-06-05 16:42:01 +01:00