anonymousland-synapse/synapse/util/caches
Erik Johnston f85b6ca494 Speed up cache size calculation
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.
2017-01-17 11:18:13 +00:00
..
__init__.py Change CacheMetrics to be quicker 2016-06-03 11:26:52 +01:00
descriptors.py Speed up cache size calculation 2017-01-17 11:18:13 +00:00
dictionary_cache.py Speed up cache size calculation 2017-01-17 11:18:13 +00:00
expiringcache.py Speed up cache size calculation 2017-01-17 11:18:13 +00:00
lrucache.py Speed up cache size calculation 2017-01-17 11:18:13 +00:00
response_cache.py Cache federation state responses 2016-07-21 10:30:12 +01:00
snapshot_cache.py Fix up logcontexts 2016-02-08 14:26:45 +00:00
stream_change_cache.py Change get_pos_of_last_change to return upper bound 2016-09-15 15:12:07 +01:00
treecache.py Speed up cache size calculation 2017-01-17 11:18:13 +00:00