mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-25 02:55:46 +03:00
ece66ba61c
This works as instead of passing *all* rooms to `record_sent_rooms` we only need to pass rooms that were previously not in the LIVE state. This came from a py-spy where we were spending ~10% CPU calling these functions. Note that `record_sent_rooms` is a no-op for rooms that are already in the `LIVE` state, so we only need to call them for `PREVIOUSLY` or `INITIAL` rooms.
1 line
66 B
Text
1 line
66 B
Text
Minor performance increase for large accounts using sliding sync.
|