anonymousland-synapse/tests
Erik Johnston 0e0a2817a2
Yield during large v2 state res. (#7735)
State res v2 across large data sets can be very CPU intensive, and if
all the relevant events are in the cache the algorithm will run from
start to finish within a single reactor tick. This can result in
blocking the reactor tick for several seconds, which can have major
repercussions on other requests.

To fix this we simply add the occaisonal `sleep(0)` during iterations to
yield execution until the next reactor tick. The aim is to only do this
for large data sets so that we don't impact otherwise quick resolutions.=
2020-06-24 18:48:18 +01:00
..
api Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
app Create a ListenerConfig object (#7681) 2020-06-16 12:44:07 +01:00
appservice
config
crypto
events
federation Add option to enable encryption by default for new rooms (#7639) 2020-06-10 17:44:34 +01:00
handlers Convert the typing handler to async/await. (#7679) 2020-06-17 10:37:59 -04:00
http Include a user agent in federation requests. (#7677) 2020-06-16 10:43:29 -04:00
logging
module_api Wrap register_device coroutine in an ensureDeferred (#7684) 2020-06-16 10:13:59 +01:00
push Ensure the body is a string before comparing push rules. (#7701) 2020-06-15 16:20:34 -04:00
replication Merge branch 'develop' into babolivier/mark_unread 2020-06-15 16:37:52 +01:00
rest add org.matrix.login.jwt so that m.login.jwt can be deprecated (#7675) 2020-06-24 10:23:55 +01:00
scripts
server_notices
state Yield during large v2 state res. (#7735) 2020-06-24 18:48:18 +01:00
storage Remove debug logging 2020-06-12 11:13:30 +01:00
test_utils
util Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00
__init__.py
server.py Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00
test_distributor.py
test_event_auth.py
test_federation.py Add option to enable encryption by default for new rooms (#7639) 2020-06-10 17:44:34 +01:00
test_mau.py
test_metrics.py
test_phone_home.py
test_preview.py
test_server.py Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00
test_state.py
test_terms_auth.py Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00
test_test_utils.py
test_types.py
test_visibility.py
unittest.py Create a ListenerConfig object (#7681) 2020-06-16 12:44:07 +01:00
utils.py Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00