Skip to content
Snippets Groups Projects
Unverified Commit d5accec2 authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Speed up sliding sync by avoiding copies (#17670)


We ended up spending ~10% CPU creating a new dictionary and
`_RoomMembershipForUser`, so let's avoid creating new dicts and copying
by returning `newly_joined`, `newly_left` and `is_dm` as sets directly.

---------

Co-authored-by: default avatarEric Eastwood <eric.eastwood@beta.gouv.fr>
parent de3363ef
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment