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 /changelog.d | |
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>
Diffstat (limited to 'changelog.d')
-rw-r--r-- | changelog.d/10712.feature | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/10712.feature b/changelog.d/10712.feature new file mode 100644 index 0000000000..d04db6f26f --- /dev/null +++ b/changelog.d/10712.feature @@ -0,0 +1 @@ +Skip final GC at shutdown to improve restart performance. |