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 Don't apply cache factor to event cache. (#7578) 2020-05-27 12:04:37 +01:00
__init__.py move batch_iter to a separate module 2020-01-16 22:25:32 +00:00
async_helpers.py Speed up processing of federation stream RDATA rows. 2020-05-27 19:34:07 +01:00
distributor.py
file_consumer.py
frozenutils.py Strictly enforce canonicaljson requirements in a new room version (#7381) 2020-05-14 13:24:01 -04:00
hash.py
httpresourcetree.py Replace instance variations of homeserver with correct case/spacing 2019-11-12 13:08:12 +00:00
iterutils.py Log saml assertions rather than the whole response 2020-01-16 22:26:34 +00:00
jsonobject.py
logcontext.py
logformatter.py
manhole.py
metrics.py Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
module_loader.py Handle `config` not being set for synapse plugin modules 2020-01-12 21:34:36 +00:00
msisdn.py
patch_inline_callbacks.py Fix stacktrace mangling in `patch_inline_callbacks` (#7554) 2020-05-22 10:17:36 +01:00
ratelimitutils.py Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
retryutils.py
rlimit.py
stringutils.py remove miscellaneous PY2 code 2020-05-15 19:37:41 +01:00
threepids.py
versionstring.py
wheel_timer.py