summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-03-23 13:24:27 +0000
committerErik Johnston <erik@matrix.org>2016-03-23 13:25:22 +0000
commit0677fc1c4e48fb0b91a2f91b348d16e5ce676125 (patch)
treeedc651e516bf8503735f10655687834dca1bfc5e /synapse
parentDon't require alias in public room list. (diff)
downloadsynapse-0677fc1c4e48fb0b91a2f91b348d16e5ce676125.tar.xz
Comment
Diffstat (limited to '')
-rw-r--r--synapse/handlers/room.py3
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)