diff options
author | Erik Johnston <erik@matrix.org> | 2016-03-23 13:24:27 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-03-23 13:25:22 +0000 |
commit | 0677fc1c4e48fb0b91a2f91b348d16e5ce676125 (patch) | |
tree | edc651e516bf8503735f10655687834dca1bfc5e /synapse | |
parent | Don't require alias in public room list. (diff) | |
download | synapse-0677fc1c4e48fb0b91a2f91b348d16e5ce676125.tar.xz |
Comment
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/room.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index a07c0ee431..25225ea1c4 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -947,6 +947,9 @@ class RoomListHandler(BaseHandler): def handle_room(room_id): aliases = yield self.store.get_aliases_for_room(room_id) + # We pull each bit of state out indvidually to avoid pulling the + # full state into memory. Due to how the caching works this should + # be fairly quick, even if not originally in the cache. def get_state(etype, state_key): return self.state_handler.get_current_state(room_id, etype, state_key) |