summary refs log tree commit diff
path: root/synapse/storage/roommember.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-05-04 14:55:28 +0100
committerErik Johnston <erik@matrix.org>2017-05-04 14:55:28 +0100
commit537dbadea05dfcc7fa855d06ae0f81405ed4e81f (patch)
treebadd556e2ba3eded772e097babd1c149af20c27a /synapse/storage/roommember.py
parentMake caches bigger (diff)
downloadsynapse-537dbadea05dfcc7fa855d06ae0f81405ed4e81f.tar.xz
Intern host strings
Diffstat (limited to 'synapse/storage/roommember.py')
-rw-r--r--synapse/storage/roommember.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py
index 1963b95724..6ec8a6345d 100644
--- a/synapse/storage/roommember.py
+++ b/synapse/storage/roommember.py
@@ -18,6 +18,7 @@ from twisted.internet import defer
 from collections import namedtuple
 
 from ._base import SQLBaseStore
+from synapse.util.caches import intern_string
 from synapse.util.caches.descriptors import cached, cachedInlineCallbacks
 from synapse.util.stringutils import to_ascii
 
@@ -516,7 +517,7 @@ class RoomMemberStore(SQLBaseStore):
 
                 event = yield self.get_event(event_id, allow_none=True)
                 if event and event.content["membership"] == Membership.JOIN:
-                    joined_hosts.add(host)
+                    joined_hosts.add(intern_string(host))
 
         defer.returnValue(joined_hosts)