summary refs log tree commit diff
path: root/synapse/storage/roommember.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-04-25 15:18:26 +0100
committerErik Johnston <erik@matrix.org>2017-04-25 15:18:26 +0100
commitf144365281e0c925ea467669cbfc6253e00f10e6 (patch)
tree969c187c4847780f3961dfb260b0637923172664 /synapse/storage/roommember.py
parentReduce size of joined_user cache (diff)
downloadsynapse-f144365281e0c925ea467669cbfc6253e00f10e6.tar.xz
Comment
Diffstat (limited to '')
-rw-r--r--synapse/storage/roommember.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py
index 68e724ac7f..7ad2198d96 100644
--- a/synapse/storage/roommember.py
+++ b/synapse/storage/roommember.py
@@ -36,6 +36,8 @@ RoomsForUser = namedtuple(
 )
 
 
+# We store this using a namedtuple so that we save about 3x space over using a
+# dict.
 ProfileInfo = namedtuple(
     "ProfileInfo", ("avatar_url", "display_name")
 )