summary refs log tree commit diff
path: root/scripts-dev/mypy_synapse_plugin.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@element.io>2024-09-30 13:32:31 +0100
committerGitHub <noreply@github.com>2024-09-30 13:32:31 +0100
commitae4862c38f4f8efbe59c1759896fcef1db74ac53 (patch)
tree8b035eb20886431c62c7cc114dd766b58ef7fd14 /scripts-dev/mypy_synapse_plugin.py
parentBump ruff from 0.6.7 to 0.6.8 (#17774) (diff)
downloadsynapse-ae4862c38f4f8efbe59c1759896fcef1db74ac53.tar.xz
Optimise notifier mk2 (#17766)
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.
Diffstat (limited to 'scripts-dev/mypy_synapse_plugin.py')
0 files changed, 0 insertions, 0 deletions