MatrixSynapse/synapse
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
..
api Remove unused function 2017-01-13 15:16:45 +00:00
app
appservice
config
crypto
events
federation
handlers
http
metrics
push
replication
rest
static/client
storage
streams
util Speed up cache size calculation 2017-01-17 11:18:13 +00:00
__init__.py
event_auth.py
notifier.py
python_dependencies.py
server.py
server.pyi
state.py
types.py
visibility.py