summary refs log tree commit diff
path: root/changelog.d
diff options
context:
space:
mode:
authorSean <squahtx@users.noreply.github.com>2021-09-01 11:55:31 +0100
committerGitHub <noreply@github.com>2021-09-01 11:55:31 +0100
commitf8bf83b811cf54b4ce668bcda6043d14c4980f00 (patch)
tree5b0bc0a4bbbf8011f5cc7f02ac79ad155d13f33e /changelog.d
parentAllow configuration of the oEmbed URLs. (#10714) (diff)
downloadsynapse-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.feature1
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.