diff options
author | Sean <squahtx@users.noreply.github.com> | 2021-09-01 11:55:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 11:55:31 +0100 |
commit | f8bf83b811cf54b4ce668bcda6043d14c4980f00 (patch) | |
tree | 5b0bc0a4bbbf8011f5cc7f02ac79ad155d13f33e | |
parent | Allow configuration of the oEmbed URLs. (#10714) (diff) | |
download | synapse-f8bf83b811cf54b4ce668bcda6043d14c4980f00.tar.xz |
Skip the final GC on shutdown to improve restart times (#10712)
Use `gc.freeze()` on exit to exclude all existing objects from the final GC. In testing, this sped up shutdown by up to a few seconds. `gc.freeze()` runs in constant time, so there is little chance of performance regression. Signed-off-by: Sean Quah <seanq@element.io>
-rw-r--r-- | changelog.d/10712.feature | 1 | ||||
-rw-r--r-- | synapse/app/_base.py | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/changelog.d/10712.feature b/changelog.d/10712.feature new file mode 100644 |