Charles-François Natali added the comment:

Could someone with a dual-core machine try the attached simplistic
benchmark with and without Victor's patch?
I can see some user-time difference with 'time' on my single-core
machine, but I'm curious to see how this would affect things were both
the parent and the child subprocess can run concurrently.

----------
Added file: http://bugs.python.org/file32903/test_sub.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19506>
_______________________________________
import subprocess
from time import perf_counter as time


DATA = b'x' * 200 * 1024**2


p = subprocess.Popen(['cat'], stdin=subprocess.PIPE,
                     stdout=subprocess.DEVNULL, stderr=subprocess.PIPE)
t = time()
p.communicate(DATA)
print(time() - t)
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to