From cfb840c5ccb8417494fb4d9556b59068abf4150e Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 27 Nov 2023 15:56:52 +0100 Subject: [PATCH] perf: in call_async_output: only wait for 0.1 sec, should speed up things significantly for stuff that calls a lot of hooks... --- moulinette/utils/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moulinette/utils/process.py b/moulinette/utils/process.py index 99945428..d015f8c9 100644 --- a/moulinette/utils/process.py +++ b/moulinette/utils/process.py @@ -82,7 +82,7 @@ def call_async_output(args, callback, **kwargs): while p.poll() is None: while True: try: - callback, message = log_queue.get(True, 1) + callback, message = log_queue.get(True, 0.1) except queue.Empty: break