diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-10-08 13:44:58 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-10-08 13:46:52 +0100 |
commit | 495975e231bd429eb0114d9258423a5e202dcb2b (patch) | |
tree | f35d618bf6950888ffed9832dd0aa39e871da308 | |
parent | Merge pull request #3995 from matrix-org/rav/no_deextrem_outliers (diff) | |
download | synapse-495975e231bd429eb0114d9258423a5e202dcb2b.tar.xz |
Optimisation for filter_events_for_server
We're better off hashing just the event_id than the whole ((type, state_key), event_id) tuple - so use a dict instead of a set. Also, iteritems > items.
-rw-r--r-- | changelog.d/4017.misc | 1 | ||||
-rw-r--r-- | synapse/visibility.py | 13 |
2 files changed, 7 insertions, 7 deletions
diff --git a/changelog.d/4017.misc b/changelog.d/4017.misc new file mode 100644 |