Hi!
I've noticed the subprocess performance issue with python 3.
For example, this simple script takes just 0,15 second to complete
with python 2.7, but more than 5 sec with python 3.6:
import subprocess
for i in range(100):
p = subprocess.Popen(['uname', '-a'], stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
(stdoutdata, stderrdata) = p.communicate()
Profiling with the cProfile shows, that this excessive 5 seconds was
wasted in the "{built-in method posix.read}"
Could anybody confirm this issue?
--
Alexander Zagrebin
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"