mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Don't bother interning keys that are already interned
This commit is contained in:
parent
acdfef7b14
commit
2f0180b09e
@ -284,9 +284,7 @@ class StateStore(SQLBaseStore):
|
|||||||
desc="_get_state_group_for_events",
|
desc="_get_state_group_for_events",
|
||||||
)
|
)
|
||||||
|
|
||||||
defer.returnValue({
|
defer.returnValue({row["event_id"]: row["state_group"] for row in rows})
|
||||||
intern(row["event_id"].encode('ascii')): row["state_group"] for row in rows
|
|
||||||
})
|
|
||||||
|
|
||||||
def _get_some_state_from_cache(self, group, types):
|
def _get_some_state_from_cache(self, group, types):
|
||||||
"""Checks if group is in cache. See `_get_state_for_groups`
|
"""Checks if group is in cache. See `_get_state_for_groups`
|
||||||
|
Loading…
Reference in New Issue
Block a user