Skip to content

Leverage manifest file to improve startup speed.#22

Merged
Archmonger merged 32 commits intomainfrom
use-django-manifest
Sep 10, 2024
Merged

Leverage manifest file to improve startup speed.#22
Archmonger merged 32 commits intomainfrom
use-django-manifest

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
@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