forked-synapse/synapse/handlers/sliding_sync
Erik Johnston d5accec2e5
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: Eric Eastwood <eric.eastwood@beta.gouv.fr>
2024-09-06 11:12:29 +01:00
..
__init__.py Speed up sliding sync by avoiding copies (#17670) 2024-09-06 11:12:29 +01:00
extensions.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
room_lists.py Speed up sliding sync by avoiding copies (#17670) 2024-09-06 11:12:29 +01:00
store.py Sliding sync: Store the per-connection state in the database. (#17599) 2024-08-29 16:26:58 +01:00