summary refs log tree commit diff
path: root/synapse/util/caches/descriptors.py (follow)
Commit message (Expand)AuthorAgeFilesLines
* Combine `LruCache.invalidate` and `invalidate_many` (#9973)Richard van der Hoff2021-05-271-2/+6
* Remove `keylen` from `LruCache`. (#9993)Richard van der Hoff2021-05-241-1/+0
* Minor `@cachedList` enhancements (#9975)Richard van der Hoff2021-05-141-6/+8
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-5/+12
* Implement and use an @lru_cache decorator (#8595)Richard van der Hoff2020-10-301-47/+188
* Optimise CacheDescriptor (#8594) release-v1.21.3Richard van der Hoff2020-10-211-5/+7
* Push some deferred wrangling down into DeferredCacheRichard van der Hoff2020-10-211-25/+7
* move DeferredCache into its own moduleRichard van der Hoff2020-10-141-282/+2
* Rename Cache->DeferredCacheRichard van der Hoff2020-10-141-7/+12
* Add some more type annotations to CacheRichard van der Hoff2020-10-141-22/+59
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-4/+4
* Fix typing for `@cached` wrapped functions (#8240)Erik Johnston2020-09-031-14/+28
* Remove the unused inlineCallbacks code-paths in the caching code (#8119)Patrick Cloke2020-08-191-46/+8
* Remove unnecessary maybeDeferred calls (#8044)Patrick Cloke2020-08-071-1/+1
* Fix some spelling mistakes / typos. (#7811)Patrick Cloke2020-07-091-1/+1
* Replace iteritems/itervalues/iterkeys with native versions. (#7692)Patrick Cloke2020-06-151-3/+1
* Allow configuration of Synapse's cache without using synctl or environment va...Amber Brown2020-05-111-6/+30
* look up cross-signing keys from the DB in bulk (#6486)Hubert Chathi2019-12-121-1/+1
* Fix LruCache callback deduplication (#6213)V024602019-11-071-11/+37
* Update docstringErik Johnston2019-10-291-3/+2
* Quick fix to ensure cache descriptors always return deferredsErik Johnston2019-10-281-2/+2
* Fix up some typechecking (#6150)Amber Brown2019-10-021-2/+20
* Fix some error cases in the caching layer. (#5749)Richard van der Hoff2019-07-251-32/+42
* Add a prometheus metric for active cache lookups. (#5750)Richard van der Hoff2019-07-241-1/+17
* Replace returnValue with return (#5736)Amber Brown2019-07-231-1/+1
* Move logging utilities out of the side drawer of util/ and into logging/ (#5606)Amber Brown2019-07-041-5/+6
* Run Black. (#5482)Amber Brown2019-06-201-47/+53
* Rename async to async_helpers because `async` is a keyword on Python 3.7 (#3678)Amber Brown2018-08-101-1/+1
* fix invalidationRichard van der Hoff2018-07-271-1/+1
* Rewrite cache list decoratorRichard van der Hoff2018-07-271-67/+64
* run isortAmber Brown2018-07-091-12/+10
* Add hacky cache factor override systemErik Johnston2018-06-041-2/+2
* Consistently use six's iteritems and wrap lazy keys/values in list() if they'...Amber Brown2018-05-311-1/+1
* Merge pull request #3281 from NotAFile/py3-six-isinstanceAmber Brown2018-05-301-4/+8
|\
| * remaining isintance fixesAdrian Tschira2018-05-241-4/+8
* | fixesAmber Brown2018-05-221-1/+1
* | replacing portionsAmber Brown2018-05-211-1/+1
|/
* Fix overzealous cache invalidationRichard van der Hoff2018-04-051-26/+38
* report metrics on number of cache evictionsRichard van der Hoff2018-02-051-0/+4
* Define CACHE_SIZE_FACTOR onceErik Johnston2017-07-041-4/+1
* Pull out if statement from for loopErik Johnston2017-05-221-6/+14
* Update list cache to handle one arg caseErik Johnston2017-05-221-17/+33
* Don't update event cache hit ratio from get_joined_usersErik Johnston2017-05-081-3/+6
* Optimise caches with single keyErik Johnston2017-05-041-9/+33
* Reduce cache size by not storing deferredsErik Johnston2017-04-251-18/+21
* Remove unused instance variableErik Johnston2017-03-311-4/+0
* Doc new instance variablesErik Johnston2017-03-301-1/+8
* Manually calculate cache key as getcallargs is expensiveErik Johnston2017-03-301-6/+28
* Don't convert to deferreds when not necessaryErik Johnston2017-03-301-1/+4
* Fix the logcontext handling in the cache wrappers (#2077)Richard van der Hoff2017-03-301-16/+14
* Fix caching of remote servers' signature keysRichard van der Hoff2017-03-221-63/+72
* CommentErik Johnston2017-02-021-1/+4
* CommentErik Johnston2017-02-021-0/+2
* Fix typo in return typeErik Johnston2017-01-171-3/+2
* Rename and comment tree_to_leaves_iteratorErik Johnston2017-01-171-2/+2
* Speed up cache size calculationErik Johnston2017-01-171-23/+74
* Optionally measure size of cache by sum of length of valuesErik Johnston2017-01-131-5/+20
* Ensure invalidation list does not grow unboundedlyErik Johnston2016-08-191-12/+8
* Rename to on_invalidateErik Johnston2016-08-191-16/+10
* Make cache_context an explicit optionErik Johnston2016-08-191-8/+27
* Remove lru optionErik Johnston2016-08-191-23/+8
* Add concept of cache contextsErik Johnston2016-08-191-13/+64
* Merge branch 'erikj/cache_perf' of github.com:matrix-org/synapse into developErik Johnston2016-06-031-10/+25
|\
| * Pull out update_results_dictErik Johnston2016-06-031-8/+7
| * Small optimisation to CacheListDescriptorErik Johnston2016-06-031-2/+2
| * Make cachedList go a bit fasterErik Johnston2016-06-031-10/+34
* | Change CacheMetrics to be quickerErik Johnston2016-06-031-4/+13
|/
* Make the cache objects be per instance rather than being globalMark Haines2016-04-061-21/+24
* Move cache size fiddling to descriptors only. Fix testsErik Johnston2016-03-011-2/+2
* Add enviroment variable SYNAPSE_CACHE_FACTOR, default it to 0.1Erik Johnston2016-03-011-0/+6
* Fix up logcontextsErik Johnston2016-02-081-5/+11
* Fix flake8 warnings for new flake8Daniel Wagner-Hall2016-02-021-2/+2
* Make LRU cache not default to treecache & add options to use itDavid Baker2016-01-221-6/+14
* Add invalidate_many here tooDavid Baker2016-01-221-0/+1
* Change LRUCache to be tree-based so we can delete subtrees.David Baker2016-01-211-1/+10
* copyrightsMatthew Hodgson2016-01-071-1/+1
* Don't assume @cachedList function returns keys for everythingErik Johnston2015-08-181-1/+1
* DocstringErik Johnston2015-08-121-0/+27
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/dictionary...Erik Johnston2015-08-121-1/+3
* Wire up the dictionarycache to the metricsErik Johnston2015-08-121-14/+3
* Move all the caches into their own package, synapse.util.cachesErik Johnston2015-08-111-0/+359