You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
data=b''.join(self._buffer)
assertdata, 'Data should not be empty'self._buffer.clear()
...
elifn>0:
data=data[n:]
self._buffer.append(data) # Try again later.
buffer implementation of UnixWritePipeTransport is not good at large data.
macOS has very little pipe buffer compared to linux. It cause more performance penalty.
Activity
Martiusweb commentedon Jul 22, 2016
Can you use cProfile around the
run_until_complete()so we can get more details?arthurdarcet commentedon Jul 22, 2016
does that work ? http://arthur.darcet.fr/a.cprof
methane commentedon Jul 22, 2016
https://github.com/python/asyncio/blob/master/asyncio/unix_events.py#L523
buffer implementation of UnixWritePipeTransport is not good at large data.
macOS has very little pipe buffer compared to linux. It cause more performance penalty.
methane commentedon Jul 22, 2016
Using bytearray as FIFO buffer will fix it.
But #339 will fix it too.
arthurdarcet commentedon Jul 22, 2016
thanks, the PR works: this is what i get with #339 on OSX:
Use bytearray for buffer in _UnixWritePipeTransport