mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-29 02:41:15 -04:00
Speed up fetching device lists changes in sync.
Currently we copy `users_who_share_room` needlessly about three times, which is expensive when the set is large (which it can easily be).
This commit is contained in:
parent
b2dba06079
commit
f9073893af
3 changed files with 24 additions and 9 deletions
|
@ -541,8 +541,8 @@ class DeviceWorkerStore(SQLBaseStore):
|
|||
|
||||
# Get set of users who *may* have changed. Users not in the returned
|
||||
# list have definitely not changed.
|
||||
to_check = list(
|
||||
self._device_list_stream_cache.get_entities_changed(user_ids, from_key)
|
||||
to_check = self._device_list_stream_cache.get_entities_changed(
|
||||
user_ids, from_key
|
||||
)
|
||||
|
||||
if not to_check:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue