This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: asyncio: _ProactorReadPipeTransport reads by chunk of 32 KiB: chunk size should be configurable
Type: performance Stage: resolved
Components: asyncio Versions: Python 3.8
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, vstinner, yselivanov
Priority: normal Keywords:

Created on 2018-06-07 10:44 by vstinner, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg318923 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-06-07 10:44
_SelectorTransport has the class attribute:
    max_size = 256 * 1024  # Buffer size passed to recv().

But _ProactorReadPipeTransport uses an hardcoded chunk size of 32 KiB. It would be nice to allow to configure this size.

By the way, _SelectorTransport.max_size has no public API to change the default value for the whole process. The attribute can only be set per socket, since _SelectorTransport is private. By the way, is the attribute documented?
msg402396 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-09-21 22:21
Nobody implemented the feature. I prefer to abandon my idea.
Date User Action Args
2022-04-11 14:59:01adminsetgithub: 77974
2021-09-21 22:21:33vstinnersetstatus: open -> closed
resolution: rejected
messages: + msg402396

stage: resolved
2018-06-07 10:44:35vstinnercreate