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

@ -378,6 +378,7 @@ class Notifier(object):
limit=limit,
is_guest=is_peeking,
room_ids=room_ids,
explicit_room_id=explicit_room_id,
)
if name == "room":