0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-21 09:23:59 +01:00
synapse/tests
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
..
api Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
app Remove spurious "name" parameter to default_config 2020-03-24 18:33:49 +00:00
appservice
config Fix specifying cache factors via env vars with * in name. (#7580) 2020-05-27 13:17:01 +01:00
crypto Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
events Implement room version 6 (MSC2240). (#7506) 2020-05-15 09:30:10 -04:00
federation Fix encryption algorithm typos in tests/comments (#7637) 2020-06-04 20:03:40 +01:00
handlers Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
http Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
logging
push Do not treat display names as globs for push rules. (#7271) 2020-04-16 10:52:55 -04:00
replication Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
rest Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
scripts
server_notices Optimise some references to hs.config (#7546) 2020-05-22 21:47:07 +01:00
state Improve get auth chain difference algorithm. (#7095) 2020-03-18 16:46:41 +00:00
storage Replace instances of reactor pumping with get_success. (#7619) 2020-06-03 16:39:30 +01:00
test_utils Fix bug in EventContext.deserialize. (#7393) 2020-05-05 14:17:27 +01:00
util Add test for Linearizer.is_queued(..) 2020-05-27 19:41:06 +01:00
__init__.py
server.py Kill off redundant SynapseRequestFactory (#6619) 2020-01-03 14:19:48 +00:00
test_distributor.py
test_event_auth.py Implement room version 6 (MSC2240). (#7506) 2020-05-15 09:30:10 -04:00
test_federation.py Process cross-signing keys when resyncing device lists (#7594) 2020-06-01 17:47:30 +02:00
test_mau.py Replace instances of reactor pumping with get_success. (#7619) 2020-06-03 16:39:30 +01:00
test_metrics.py Allow configuration of Synapse's cache without using synctl or environment variables (#6391) 2020-05-11 18:45:23 +01:00
test_phone_home.py Remove the psutil dependency (#6318) 2019-11-05 05:05:48 +11:00
test_preview.py
test_server.py Fix missing CORS headers on OPTION responses (#7560) 2020-05-22 17:42:39 +01:00
test_state.py Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
test_terms_auth.py Merge pull request #7157 from matrix-org/rev.outbound_device_pokes_tests 2020-03-30 13:59:07 +01:00
test_test_utils.py
test_types.py Validate the alt_aliases property of canonical alias events (#6971) 2020-03-03 07:12:45 -05:00
test_visibility.py Port to use state storage 2019-10-30 14:46:54 +00:00
unittest.py Fix limit logic for EventsStream (#7358) 2020-04-29 12:30:36 +01:00
utils.py Allow configuration of Synapse's cache without using synctl or environment variables (#6391) 2020-05-11 18:45:23 +01:00