summary refs log tree commit diff
path: root/synapse/storage/state.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-03-23 16:29:46 +0000
committerErik Johnston <erik@matrix.org>2016-03-23 16:29:46 +0000
commit2f0180b09e2a2afeed418a5840ae6b4fffcb4be4 (patch)
tree3d1f05e774c172194e6907032652a9dd7726113b /synapse/storage/state.py
parentIntern all the things (diff)
downloadsynapse-2f0180b09e2a2afeed418a5840ae6b4fffcb4be4.tar.xz
Don't bother interning keys that are already interned
Diffstat (limited to 'synapse/storage/state.py')
-rw-r--r--synapse/storage/state.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index 03eecbbbb6..02cefdff26 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -284,9 +284,7 @@ class StateStore(SQLBaseStore):
             desc="_get_state_group_for_events",
         )
 
-        defer.returnValue({
-            intern(row["event_id"].encode('ascii')): row["state_group"] for row in rows
-        })
+        defer.returnValue({row["event_id"]: row["state_group"] for row in rows})
 
     def _get_some_state_from_cache(self, group, types):
         """Checks if group is in cache. See `_get_state_for_groups`