Add some comments to areas that could be optimised.

This commit is contained in:
David Baker 2015-12-22 17:19:22 +00:00
parent 3fbb031745
commit 5645d9747b
3 changed files with 14 additions and 1 deletions

View file

@ -447,6 +447,9 @@ class SyncHandler(BaseHandler):
)
now_token = now_token.copy_and_replace("presence_key", presence_key)
# We now fetch all ephemeral events for this room in order to get
# this users current read receipt. This could almost certainly be
# optimised.
_, all_ephemeral_by_room = yield self.ephemeral_by_room(
sync_config, now_token
)