Make presence.get_new_events a bit faster

We do this by caching the set of users a user shares rooms with.
This commit is contained in:
Erik Johnston 2017-02-02 13:07:18 +00:00
parent 14d5e22700
commit 54a79c1d37
4 changed files with 33 additions and 29 deletions

View file

@ -437,6 +437,7 @@ class RoomEventSource(object):
limit,
room_ids,
is_guest,
explicit_room_id=None,
):
# We just ignore the key for now.