Python subprocess slow in Monitor submission script

I’ve noticed that running python subprocesses (i.e. subprocess.check_output()) are significantly slower when running a submission script from the Monitor than from the terminal with deadlinecommand.

Is there any reason why that is?

I’m rewriting the submitter for my custom Husk plugin and I’m using subprocesses to check USD info twice per job submission. When run from the Monitor it hangs for a bit and a window flashes up and disappears for each subprocess call before moving on.

I’m running 10.3 btw.

Managed to fix it.
The solution was to add creationflags=subprocess.CREATE_NO_WINDOW