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

Leverage manifest file to improve startup speed. #22

Merged
merged 32 commits into from
Sep 10, 2024

Conversation

Archmonger
Copy link
Owner

@Archmonger Archmonger commented Aug 30, 2024

Description

Currently, the boot time of ServeStatic can be pretty slow if there's thousands of static files due to needing directory traversal and calling os.stat on each file.

This PR aims to minimize startup time by reading Django's manifest file when possible.

Derivative of upstream PR:

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 marked this pull request as ready for review September 10, 2024 06:10
@Archmonger Archmonger merged commit a3f1225 into main Sep 10, 2024
13 checks passed
@Archmonger Archmonger deleted the use-django-manifest branch September 10, 2024 08:57
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.

1 participant