MatrixSynapse/synapse/util
Andrew Morgan f4e6495b5d
Performance improvements and refactor of Ratelimiter (#7595)
While working on https://github.com/matrix-org/synapse/issues/5665 I found myself digging into the `Ratelimiter` class and seeing that it was both:

* Rather undocumented, and
* causing a *lot* of config checks

This PR attempts to refactor and comment the `Ratelimiter` class, as well as encourage config file accesses to only be done at instantiation. 

Best to be reviewed commit-by-commit.
2020-06-05 10:47:20 +01:00
..
caches
__init__.py
async_helpers.py
distributor.py
file_consumer.py
frozenutils.py
hash.py
httpresourcetree.py
iterutils.py
jsonobject.py
logcontext.py
logformatter.py
manhole.py
metrics.py
module_loader.py
msisdn.py
patch_inline_callbacks.py
ratelimitutils.py Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
retryutils.py
rlimit.py
stringutils.py
threepids.py
versionstring.py
wheel_timer.py