mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
ae4862c38f
Based on #17765. Basically the idea is to reduce the overhead of calling `ObservableDeferred` in a loop. The two gains are: a) just using a list of deferreds rather than the machinery of `ObservableDeferred`, and b) only calling `PreseverLoggingContext` once. `PreseverLoggingContext` in particular is expensive to call a lot as each time it needs to call `get_thread_resource_usage` twice, so that it an update the CPU metrics of the log context. |
||
---|---|---|
.. | ||
.gitignore | ||
17749.doc | ||
17751.misc | ||
17765.misc | ||
17766.misc | ||
17768.misc | ||
17771.misc |