diff options
author | Erik Johnston <erik@matrix.org> | 2021-06-21 14:38:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 14:38:59 +0100 |
commit | a5cd05beeeac80df0352bd50c2ad2e017664665c (patch) | |
tree | 582741c4805d25a8869d1dbba82f80fe58b7fc14 /synapse/storage | |
parent | Check third party rules before persisting knocks over federation (#10212) (diff) | |
download | synapse-a5cd05beeeac80df0352bd50c2ad2e017664665c.tar.xz |
Fix performance of responding to user key requests over federation (#10221)
We were repeatedly looking up a config option in a loop (using the unclassed config style), which is expensive enough that it can cause large CPU usage.
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/databases/main/end_to_end_keys.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/end_to_end_keys.py b/synapse/storage/databases/main/end_to_end_keys.py |