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

The speed of asyncio UDP is too slow when transferring large file #91487

Closed
msoxzw opened this issue Apr 12, 2022 · 0 comments · Fixed by #91488
Closed

The speed of asyncio UDP is too slow when transferring large file #91487

msoxzw opened this issue Apr 12, 2022 · 0 comments · Fixed by #91488
Labels
expert-asyncio performance Performance or resource usage

Comments

@msoxzw
Copy link
Contributor

msoxzw commented Apr 12, 2022

The speed of asyncio UDP is merely a couple of Mbps if a large file, e.g. 65536 KiB, is transferred.

Test file:
https://gist.github.com/msoxzw/8ae5c488edbc2985d41563c4d9c9cc04

@AlexWaygood AlexWaygood added performance Performance or resource usage expert-asyncio labels Apr 12, 2022
miss-islington pushed a commit that referenced this issue Apr 15, 2022
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
Labels
expert-asyncio performance Performance or resource usage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants