We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
aiofiles
We currently rely on aiofiles for async file reading, but it may not be the most performant option.
We will need to do some benchmarks and determine whether it should be replaced with aiofile,anyio, or asyncio.to_thread.
aiofile
anyio
asyncio.to_thread
The text was updated successfully, but these errors were encountered:
I've created some benchmarks and it appears that asyncio.to_thread is the most performant under the majority of scenarios.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Description
We currently rely on
aiofiles
for async file reading, but it may not be the most performant option.We will need to do some benchmarks and determine whether it should be replaced with
aiofile
,anyio
, orasyncio.to_thread
.The text was updated successfully, but these errors were encountered: