summary refs log tree commit diff
path: root/synapse/handlers/room_member.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrewm@element.io>2022-07-15 14:42:10 +0100
committerAndrew Morgan <andrewm@element.io>2022-08-15 17:43:00 +0100
commitfa16df37fcff729ef5316920dd41e8bbfcc2e1cf (patch)
tree6ef296480201b76a582815878d00884fdcf0adb2 /synapse/handlers/room_member.py
parentGive a clearer name to the variables holding preset IDs and configs (diff)
downloadsynapse-fa16df37fcff729ef5316920dd41e8bbfcc2e1cf.tar.xz
Refactor state event sending
Instead of sending state events as we go, we instead calculate all state
events to send and store them in a dict (ordered since Python 3.7) and
then send them all at once in the end.

This has no performance benefit whatsoever, but I find this clearer to
reason about. My personal use case is eventually placing another layer
of "custom room preset" state on top, which would be easier to do with a
state map, instead of the previous code which sent state into the room
as it went along.

If we do eventually send all new room state simultaneously to speed up
local room creation, I believe this would be an easier starting point.
Diffstat (limited to 'synapse/handlers/room_member.py')
0 files changed, 0 insertions, 0 deletions