summary refs log tree commit diff
path: root/synapse/util/caches/dictionary_cache.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Speed up cache size calculationErik Johnston2017-01-171-2/+4
| | | | | | | | | | | Instead of calculating the size of the cache repeatedly, which can take a long time now that it can use a callback, instead cache the size and update that on insertion and deletion. This requires changing the cache descriptors to have two caches, one for pending deferreds and the other for the actual values. There's no reason to evict from the pending deferreds as they won't take up any more memory.
* Change CacheMetrics to be quickerErik Johnston2016-06-031-4/+4
| | | | | | We change it so that each cache has an individual CacheMetric, instead of having one global CacheMetric. This means that when a cache tries to increment a counter it does not need to go through so many indirections.
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Wire up the dictionarycache to the metricsErik Johnston2015-08-121-31/+25
|
* Move all the caches into their own package, synapse.util.cachesErik Johnston2015-08-111-0/+109