[issue35657] multiprocessing.Process.join() ignores timeout if child process use os.exec*()

2019-01-04 Thread Huazuo Gao
New submission from Huazuo Gao : import os import time from multiprocessing import Process p = Process(target=lambda:os.execlp('bash', 'bash', '-c', 'sleep 1.5')) t0 = time.time() p.start() p.join(0.1) print(time.time() - t0) --- Python 3.5 - 3.8 take 1.5 sec to finish Python 2.7 take 0.1

[issue35589] BaseSelectorEventLoop.sock_sendall() performance regression: extra copy of data

2018-12-26 Thread Huazuo Gao
New submission from Huazuo Gao : Prior to PR 10419, sock_sendall does not make a copy of the data. PR 10419 introduced an extra copy, which may cause problem for code that send a huge chunk of data simultaneously to many peers. Relevant change is: https://github.com/python/cpython/pull/10419