summary refs log tree commit diff
path: root/scripts-dev/check_pydantic_models.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@element.io>2024-09-06 11:12:29 +0100
committerGitHub <noreply@github.com>2024-09-06 11:12:29 +0100
commitd5accec2e5c857bf6ba71259ea052f5fe173b2eb (patch)
tree33e9c69ff47a183423f25b14146ce32bf034ae3a /scripts-dev/check_pydantic_models.py
parentStabilise MSC4156: `server_name` -> `via` (#17650) (diff)
downloadsynapse-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