mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 17:46:08 +03:00
bbfe4e996c
Most of the time was spent copying a dict to filter out sentinel values that indicated that keys did not exist in the dict. The sentinel values were added to ensure that we cached the non-existence of keys. By updating DictionaryCache to keep track of which keys were known to not exist itself we can remove a dictionary copy. |
||
---|---|---|
.. | ||
caches | ||
__init__.py | ||
test_clock.py | ||
test_dict_cache.py | ||
test_expiring_cache.py | ||
test_limiter.py | ||
test_linearizer.py | ||
test_log_context.py | ||
test_lrucache.py | ||
test_rwlock.py | ||
test_snapshot_cache.py | ||
test_treecache.py | ||
test_wheel_timer.py |