Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Comment about a better future where we can get the state diff between…
Browse files Browse the repository at this point in the history
  • Loading branch information
MadLittleMods authored Aug 24, 2022
1 parent c406d50 commit 0bf180c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/13586.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Comment about a better future where we can get the state diff between two events.
8 changes: 8 additions & 0 deletions synapse/handlers/federation_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,14 @@ async def _get_state_ids_after_missing_prev_event(
InvalidResponseError: if the remote homeserver's response contains fields
of the wrong type.
"""

# It would be better if we could query the difference from our known
# state to the given `event_id` so the sending server doesn't have to
# send as much and we don't have to process as many events. For example
# in a room like #matrix:matrix.org, we get 200k events (77k state_events, 122k
# auth_events) from this call.
#
# Tracked by https://github.com/matrix-org/synapse/issues/13618
(
state_event_ids,
auth_event_ids,
Expand Down

0 comments on commit 0bf180c

Please sign in to comment.