cpython: b3ef922e6f26 (original) (raw)

Mercurial > cpython

changeset 104305:b3ef922e6f26 3.5

Issue #28370: Speedup asyncio.StreamReader.readexactly Patch by Коренберг Марк. [#28370]

Yury Selivanov yury@magic.io
date Wed, 05 Oct 2016 18:01:12 -0400
parents 2b502f624753
children b76553de3a29 c8e71ddf1db5
files Lib/asyncio/streams.py Misc/NEWS
diffstat 2 files changed, 19 insertions(+), 18 deletions(-)[+] [-] Lib/asyncio/streams.py 34 Misc/NEWS 3

line wrap: on

line diff

--- a/Lib/asyncio/streams.py +++ b/Lib/asyncio/streams.py @@ -448,6 +448,7 @@ class StreamReader: assert not self._eof, '_wait_for_data after EOF' # Waiting for data while paused will make deadlock, so prevent it.

@@ -658,25 +659,22 @@ class StreamReader: if n == 0: return b''

+

-

-

if compat.PY35: @coroutine

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -353,6 +353,9 @@ Library