diff options
author | Erik Johnston <erikj@element.io> | 2024-09-06 11:12:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-06 11:12:54 +0100 |
commit | 786de8570bf7ff14a8b98dbad6b9b9c18b05faf7 (patch) | |
tree | 283154cbc8b8269229ec329bf40e21d4ea94a388 /scripts-dev/check_pydantic_models.py | |
parent | Speed up sliding sync by avoiding copies (#17670) (diff) | |
download | synapse-786de8570bf7ff14a8b98dbad6b9b9c18b05faf7.tar.xz |
Speed up fetching partial-state rooms on sliding sync (#17666)
Instead of having a large cache of `room_id -> bool` about whether a room is partially stated, replace with a "fetch rooms the user is which are partially-stated". This is a lot faster as the set of partially stated rooms at any point across the whole server is small, and so such a query is fast. The main issue with the bulk cache lookup is the CPU time looking all the rooms up in the cache.
Diffstat (limited to 'scripts-dev/check_pydantic_models.py')
0 files changed, 0 insertions, 0 deletions