Sean f8bf83b811
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>
2021-09-01 11:55:31 +01:00
..
2021-08-24 17:13:29 +01:00
2021-07-19 15:28:05 +01:00
2021-08-31 13:43:28 +01:00
2021-07-19 15:28:05 +01:00