diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-01-09 08:43:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-09 08:43:50 -0500 |
commit | 7e582a25f8f350df29d7d83ca902bdb522d1bbaf (patch) | |
tree | a624e48b4fbe68dd1dc5c138ce34b82d57d0f3da /tests/rest/__init__.py | |
parent | Disable sending confirmation email when 3pid is disabled #14682 (#14725) (diff) | |
download | synapse-7e582a25f8f350df29d7d83ca902bdb522d1bbaf.tar.xz |
Improve /sync performance of when passing filters with empty arrays. (#14786)
This has two related changes: * It enables fast-path processing for an empty filter (`[]`) which was previously only used for wildcard not-filters (`["*"]`). * It special cases a `/sync` filter with no-rooms to skip all room processing, previously we would partially skip processing, but would generally still calculate intermediate values for each room which were then unused. Future changes might consider further optimizations: * Skip calculating per-room account data when all rooms are filtered (currently this is thrown away). * Make similar improvements to other endpoints which support filters.
Diffstat (limited to 'tests/rest/__init__.py')
0 files changed, 0 insertions, 0 deletions