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
..
2020-05-15 18:54:32 +01:00
2020-05-21 13:25:41 +01:00
2020-05-15 19:37:41 +01:00
2020-05-27 19:41:44 +01:00
2019-12-12 15:21:12 +00:00
2020-05-28 12:36:00 +02:00
2020-05-13 08:24:50 -04:00
2019-06-20 19:32:02 +10:00
2020-03-11 18:49:41 +00:00