synapse/tests/rest/client/v1
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 Fix flake8 warnings for tests 2016-02-19 15:34:38 +00:00
test_directory.py Remove special casing of `m.room.aliases` events (#7034) 2020-03-17 07:37:04 -04:00
test_events.py Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
test_login.py Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
test_presence.py Fixup tests 2019-12-05 15:57:28 +00:00
test_profile.py Add option to allow profile queries without sharing a room (#6523) 2019-12-16 16:11:55 +00:00
test_rooms.py Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
test_typing.py Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
utils.py Fix limit logic for EventsStream (#7358) 2020-04-29 12:30:36 +01:00