Commit Graph

60 Commits (92d39126d70477da65c478c1ffc5a6ef124833d6)

Author SHA1 Message Date
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
Erik Johnston 0663c5bd52 Include cache hits with has_entity_changed 9 years ago
Erik Johnston 45cf827c8f Change name and doc has_entity_changed 9 years ago
Erik Johnston 00cb3eb24b Cache tags and account data 9 years ago
Erik Johnston c23a8c7833 Ensure keys to RoomStreamChangeCache are ints 9 years ago
Erik Johnston e1941442d4 Invalidate caches properly. Remove unused arg 9 years ago
Erik Johnston b97f6626b6 Add cache to room stream 9 years ago
David Baker 7cd418d38e Don't add the member functiopn if we're not using treecache 9 years ago
David Baker cd80019eec docs 9 years ago
David Baker d552861346 Revert all the bits changing keys of eeverything that used LRUCaches to tuples 9 years ago
David Baker 10f76dc5da Make LRU cache not default to treecache & add options to use it 9 years ago
David Baker 5b142788d2 Add __contains__ 9 years ago
David Baker eaa836e8ca Docs for treecache 9 years ago
David Baker 8acc5cb60f Add invalidate_many here too 9 years ago
David Baker 330be18ec5 peppate 9 years ago
David Baker f1f8122120 Change LRUCache to be tree-based so we can delete subtrees. 9 years ago
Matthew Hodgson 6c28ac260c copyrights 9 years ago