synapse-product/synapse/api
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
..
__init__.py copyrights 2016-01-07 04:26:29 +00:00
auth_blocking.py Stop Auth methods from polling the config on every req. (#7420) 2020-05-06 15:54:58 +01:00
auth.py Allow expired accounts to logout (#7443) 2020-05-14 16:32:49 +01:00
constants.py Stop the master relaying USER_SYNC for other workers (#7318) 2020-04-22 22:39:04 +01:00
errors.py Convert http.HTTPStatus objects to their int equivalent (#7188) 2020-04-03 14:26:07 +01:00
filtering.py Fixup synapse.api to pass mypy (#6733) 2020-01-20 17:34:13 +00:00
ratelimiting.py Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
room_versions.py Implement room version 6 (MSC2240). (#7506) 2020-05-15 09:30:10 -04:00
urls.py Remove unused, undocumented "content repo" resource (#6628) 2020-01-03 17:10:52 +00:00