perf: in call_async_output: only wait for 0.1 sec, should speed up things significantly for stuff that calls a lot of hooks...

This commit is contained in:
Alexandre Aubin 2023-11-27 15:56:52 +01:00
parent 976aac0d05
commit cfb840c5cc

View file

@ -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