mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-22 12:44:30 +03:00
Only run on py3.7
This commit is contained in:
parent
c7bc2a7a64
commit
e377e08d5a
1 changed files with 6 additions and 3 deletions
|
@ -282,7 +282,10 @@ def start(hs, listeners=None):
|
|||
|
||||
# We now freeze all allocated objects in the hopes that (almost)
|
||||
# everything currently allocated are things that will be used for the
|
||||
# rest of time. Doing so means less work each GC (hopefully)
|
||||
# rest of time. Doing so means less work each GC (hopefully).
|
||||
#
|
||||
# This only works on Python 3.7
|
||||
if sys.version_info >= (3, 7):
|
||||
gc.collect()
|
||||
gc.freeze()
|
||||
except Exception:
|
||||
|
|
Loading…
Reference in a new issue