]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91487: Optimize asyncio UDP speed (GH-91488)
authormsoxzw <56633971+msoxzw@users.noreply.github.com>
Fri, 15 Apr 2022 19:59:01 +0000 (19:59 +0000)
committerGitHub <noreply@github.com>
Fri, 15 Apr 2022 19:59:01 +0000 (12:59 -0700)
commit42fabc3ea767f10989363536eaaa9da32616ab57
tree6233bfa04fbe4ad6f367d2f4e05d0acb7553c006
parentc9e231de8551ab6d06c92dfa95033150e52d7f1f
gh-91487: Optimize asyncio UDP speed (GH-91488)

Fix #91487

When transferring a small file, e.g. 256 KiB, the speed of this PR is comparable. However, if a large file, e.g. 65536 KiB, is transferred, asyncio UDP will be over 100 times faster than the original. The speed is presumably significantly faster if a larger file is transferred, e.g. 1048576 KiB.

Automerge-Triggered-By: GH:gpshead
Lib/asyncio/proactor_events.py
Lib/asyncio/selector_events.py
Misc/NEWS.d/next/Library/2022-04-15-19-34-02.gh-issue-91487.2aqguF.rst [new file with mode: 0644]