[New-bugs-announce] [issue41273] asyncio: proactor read transport: use recv_into instead of recv

Tony report at bugs.python.org
Fri Jul 10 17:08:56 EDT 2020


New submission from Tony <tony.solomonik at gmail.com>:

Using recv_into instead of recv in the transport _loop_reading will speed up the process.

>From what I checked it's about 120% performance increase.

This is only because there should not be a new buffer allocated each time we call recv, it's really wasteful.

----------
messages: 373483
nosy: tontinton
priority: normal
severity: normal
status: open
title: asyncio: proactor read transport: use recv_into instead of recv

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41273>
_______________________________________


More information about the New-bugs-announce mailing list