mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
c4fa4f37cb
The code to deduplicate repeated fetches of the same set of events was N^2 (over the number of events requested), which could lead to a process being completely wedged. The main fix is to deduplicate the returned deferreds so we only await on a deferred once rather than many times. Seperately, when handling the returned events from the defrered we only add the events we care about to the event map to be returned (so that we don't pay the price of inserting extraneous events into the dict). |
||
---|---|---|
.. | ||
databases | ||
engines | ||
schema | ||
util | ||
__init__.py | ||
_base.py | ||
background_updates.py | ||
database.py | ||
keys.py | ||
persist_events.py | ||
prepare_database.py | ||
purge_events.py | ||
push_rule.py | ||
relations.py | ||
roommember.py | ||
state.py | ||
types.py |