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 Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
file_consumer.py Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
frozenutils.py Strictly enforce canonicaljson requirements in a new room version (#7381) 2020-05-14 13:24:01 -04:00
hash.py Use the v2 Identity Service API for lookups (MSC2134 + MSC2140) (#5976) 2019-09-11 16:02:42 +01:00
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 Improve the backwards compatibility re-exports of synapse.logging.context (#5617) 2019-07-05 02:32:02 +10:00
logformatter.py Improve the backwards compatibility re-exports of synapse.logging.context (#5617) 2019-07-05 02:32:02 +10:00
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 Fix errors storing large retry intervals. 2019-10-02 10:36:27 +01:00
rlimit.py Remove usage of deprecated logger.warn method from codebase (#6271) 2019-10-31 10:23:24 +00:00
stringutils.py remove miscellaneous PY2 code 2020-05-15 19:37:41 +01:00
threepids.py
versionstring.py Handle FileNotFound error in checking git repository version (#6284) 2019-10-30 11:00:15 +00:00
wheel_timer.py