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

Replace aiofiles with Python threads #27

Merged
merged 11 commits into from
Sep 12, 2024
Merged

Replace aiofiles with Python threads #27

merged 11 commits into from
Sep 12, 2024

Conversation

Archmonger
Copy link
Owner

@Archmonger Archmonger commented Sep 11, 2024

Description

It was determined that aiofiles performance is pretty bad.

And what's even more unfortunate is that a simple python thread wrapper operates faster than all existing async file libraries.

As a result, this PR removes the aiofiles dependency and replaces it with a lightweight thread wrapper.

Checklist

Please update this checklist as you complete each item:

  • Tests have been developed for bug fixes or new functionality.
  • The changelog has been updated, if necessary.
  • Documentation has been updated, if necessary.
  • GitHub Issues closed by this PR have been linked.

By submitting this pull request I agree that all contributions comply with this project's open source license(s).

@Archmonger Archmonger changed the title Functional with Django 4.0 Replace aiofiles with Python threads Sep 11, 2024
@Archmonger Archmonger marked this pull request as ready for review September 12, 2024 07:51
@Archmonger Archmonger merged commit 5f7c100 into main Sep 12, 2024
13 checks passed
@Archmonger Archmonger deleted the remove-aiofiles-2 branch September 12, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider replacing aiofiles with a different package
1 participant