Commit Graph

76 Commits (d61a04583eda3ba4deea4b82b93e61903919e1a8)

Author SHA1 Message Date
Erik Johnston c430111d0e Update LruCache size estimate on clear 8 years ago
Erik Johnston 380dba1020 Measure metrics of string_cache 8 years ago
Erik Johnston 37b4c7d8a9 Fix typo in return type 8 years ago
Erik Johnston d6c75cb7c2 Rename and comment tree_to_leaves_iterator 8 years ago
Erik Johnston 1ccd5676e3 Remove needless call to evict() 8 years ago
Erik Johnston f85b6ca494 Speed up cache size calculation 8 years ago
Erik Johnston 6d00213e80 Use OrderedDict in ExpiringCache 8 years ago
Erik Johnston 46aebbbcbf Add support for 'iterable' to ExpiringCache 8 years ago
Erik Johnston 2fae34bd2c Optionally measure size of cache by sum of length of values 8 years ago
Erik Johnston 955f34d23e Change get_pos_of_last_change to return upper bound 8 years ago
Erik Johnston cb3edec6af Use stream_change cache to make get_forward_extremeties_for_room cache more effective 8 years ago
Erik Johnston 45fd2c8942 Ensure invalidation list does not grow unboundedly 8 years ago
Erik Johnston c0d7d9d642 Rename to on_invalidate 8 years ago
Erik Johnston dc76a3e909 Make cache_context an explicit option 8 years ago
Erik Johnston ba214a5e32 Remove lru option 8 years ago
Erik Johnston 4161ff2fc4 Add concept of cache contexts 8 years ago
Erik Johnston 248e6770ca Cache federation state responses 8 years ago
Erik Johnston 58a224a651 Pull out update_results_dict 9 years ago
Erik Johnston 73c7112433 Change CacheMetrics to be quicker 9 years ago
Erik Johnston e043ede4a2 Small optimisation to CacheListDescriptor 9 years ago
Erik Johnston 597013caa5 Make cachedList go a bit faster 9 years ago
Erik Johnston af03ecf352 Deduplicate joins 9 years ago
Mark Haines 87f2dec8d4 Make the cache objects be per instance rather than being global 9 years ago
Mark Haines 77cba688ed Fix typo 9 years ago
Mark Haines 191c7bef6b Deduplicate identical /sync requests 9 years ago
Erik Johnston 8122ad7bab Simplify intern_dict 9 years ago
Erik Johnston acdfef7b14 Intern all the things 9 years ago
Erik Johnston 75daede92f String intern 9 years ago
Erik Johnston c4a8cbd15a Make LruCache use a dedicated _Node class 9 years ago
Erik Johnston a547e2df85 Return list, not generator. 9 years ago
Mark Haines 239badea9b Use syntax that works on both py2.7 and py3 9 years ago
Erik Johnston 374f9b2f07 Limit stream change cache size too 9 years ago
Erik Johnston ce2cdced61 Move cache size fiddling to descriptors only. Fix tests 9 years ago
Erik Johnston 910fc0f28f Add enviroment variable SYNAPSE_CACHE_FACTOR, default it to 0.1 9 years ago
Erik Johnston 72165e5b77 Reraise exception 9 years ago
Erik Johnston ff2d7551c7 Correct cache miss detection 9 years ago
Erik Johnston 278d6c0527 Report size of ExpiringCache 9 years ago
Erik Johnston c77dae7a1a Change the way we figure out presence updates for small deltas 9 years ago
Erik Johnston 2c1fbea531 Fix up logcontexts 9 years ago
Daniel Wagner-Hall d83d004ccd Fix flake8 warnings for new flake8 9 years ago
Erik Johnston e70165039c If stream pos is greater then earliest known key and entity hasn't changed, then entity hasn't changed 9 years ago
Erik Johnston 18579534ea Prefill stream change caches 9 years ago
Erik Johnston fb7299800f Directly set self.value 9 years ago
Erik Johnston c046630c33 Remove spurious self.size 9 years ago
Erik Johnston a30364c1f9 Correctly bookkeep the size of TreeCache 9 years ago
Erik Johnston 766526e114 Make TreeCache keep track of its own size. 9 years ago
Erik Johnston 50e18938a9 Reset size on clear 9 years ago
Erik Johnston 3f5dd18bd4 If the same as the earliest key, assume nothing has changed. 9 years ago
Erik Johnston 40431251cb Correctly update _entity_to_key 9 years ago
Erik Johnston 82cf3a8043 Fix inequalities 9 years ago