Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-41273: asyncio's proactor read transport's better performance by using recv_into instead of recv #21442

Merged
merged 2 commits into from
Jul 14, 2020

Commits on Jul 11, 2020

  1. bpo-41273: Proactor transport read loop to use recv_into

    By using recv_into instead of recv we do not allocate a new buffer each
    time _loop_reading calls recv.
    
    This betters performance for any stream using proactor (basically any
    asyncio stream on windows).
    tontinton committed Jul 11, 2020
    Configuration menu
    Copy the full SHA
    d147074 View commit details
    Browse the repository at this point in the history
  2. bpo-41273: Double proactor read transport buffer size

    By doubling the read buffer size we get better performance.
    tontinton committed Jul 11, 2020
    Configuration menu
    Copy the full SHA
    357a3f5 View commit details
    Browse the repository at this point in the history