Skip to content
Snippets Groups Projects
Unverified Commit f8bf83b8 authored by Sean's avatar Sean Committed by GitHub
Browse files

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: default avatarSean Quah <seanq@element.io>
parent e2481dbe
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment