mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 21:42:05 +08:00
disable GC for locationd and paramsd (#20680)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
import json
|
||||
import gc
|
||||
import numpy as np
|
||||
import sympy as sp
|
||||
import cereal.messaging as messaging
|
||||
@@ -289,6 +290,8 @@ class Localizer():
|
||||
|
||||
|
||||
def locationd_thread(sm, pm, disabled_logs=None):
|
||||
gc.disable()
|
||||
|
||||
if disabled_logs is None:
|
||||
disabled_logs = []
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
import gc
|
||||
import math
|
||||
|
||||
import json
|
||||
@@ -65,6 +66,8 @@ class ParamsLearner:
|
||||
|
||||
|
||||
def main(sm=None, pm=None):
|
||||
gc.disable()
|
||||
|
||||
if sm is None:
|
||||
sm = messaging.SubMaster(['liveLocationKalman', 'carState'], poll=['liveLocationKalman'])
|
||||
if pm is None:
|
||||
|
||||
Reference in New Issue
Block a user