0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-18 07:52:56 +01:00
synapse/tests/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 Test ratelimiter 2014-09-02 15:16:26 +01:00
test_auth.py Stop Auth methods from polling the config on every req. (#7420) 2020-05-06 15:54:58 +01:00
test_filtering.py Add a make_event_from_dict method (#6858) 2020-02-07 15:30:04 +00:00
test_ratelimiting.py Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00