summary refs log tree commit diff
path: root/synapse/util/caches/lrucache.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add commentsErik Johnston2018-03-191-0/+7
|
* Fix bug where state cache used lots of memoryErik Johnston2018-03-151-4/+4
| | | | | | | | | The state cache bases its size on the sum of the size of entries. The size of the entry is calculated once on insertion, so it is important that the size of entries does not change. The DictionaryCache modified the entries size, which caused the state cache to incorrectly think it was smaller than it actually was.
* report metrics on number of cache evictionsRichard van der Hoff2018-02-051-3/+25
|
* Update LruCache size estimate on clearErik Johnston2017-01-181-0/+2
|
* Remove needless call to evict()Erik Johnston2017-01-171-1/+0
|
* Speed up cache size calculationErik Johnston2017-01-171-17/+25
| | | | | | | | | | | 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.
* Optionally measure size of cache by sum of length of valuesErik Johnston2017-01-131-14/+18
|
* Ensure invalidation list does not grow unboundedlyErik Johnston2016-08-191-8/+8
|
* Add concept of cache contextsErik Johnston2016-08-191-7/+32
|
* Make LruCache use a dedicated _Node classErik Johnston2016-03-221-32/+41
|
* Remove spurious self.sizeErik Johnston2016-01-291-1/+0
|
* Make TreeCache keep track of its own size.Erik Johnston2016-01-291-6/+3
|
* Reset size on clearErik Johnston2016-01-291-0/+2
|
* Don't add the member functiopn if we're not using treecacheDavid Baker2016-01-221-1/+4
|
* docsDavid Baker2016-01-221-1/+5
|
* Revert all the bits changing keys of eeverything that used LRUCaches to tuplesDavid Baker2016-01-221-1/+1
|
* Make LRU cache not default to treecache & add options to use itDavid Baker2016-01-221-4/+5
|
* Change LRUCache to be tree-based so we can delete subtrees.David Baker2016-01-211-8/+35
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Move all the caches into their own package, synapse.util.cachesErik Johnston2015-08-111-0/+149