diff options
author | Erik Johnston <erikj@element.io> | 2024-09-06 11:12:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-06 11:12:29 +0100 |
commit | d5accec2e5c857bf6ba71259ea052f5fe173b2eb (patch) | |
tree | 33e9c69ff47a183423f25b14146ce32bf034ae3a /scripts-dev/check_pydantic_models.py | |
parent | Stabilise MSC4156: `server_name` -> `via` (#17650) (diff) | |
download | synapse-d5accec2e5c857bf6ba71259ea052f5fe173b2eb.tar.xz |
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>
Diffstat (limited to 'scripts-dev/check_pydantic_models.py')
0 files changed, 0 insertions, 0 deletions