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

Reuse asset optimization cache between release and debug builds #3520

Open
ealmloff opened this issue Jan 8, 2025 · 0 comments
Open

Reuse asset optimization cache between release and debug builds #3520

ealmloff opened this issue Jan 8, 2025 · 0 comments
Labels
cli Related to the dioxus-cli program manganis Related to the manganis crate performance

Comments

@ealmloff
Copy link
Member

ealmloff commented Jan 8, 2025

Feature Request

We skip re-optimizing assets when we see the file in the build cache. The asset name has the hash of the input contents and asset options so if we see the same name, the optimized version is always the same. However since we output assets to a different place in debug vs release builds, we end up re-optimizing assets when switching between the two builds

Implement Suggestion

Use a shared location for the asset optimization cache and copy assets from there into the final build

@ealmloff ealmloff added cli Related to the dioxus-cli program performance manganis Related to the manganis crate labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the dioxus-cli program manganis Related to the manganis crate performance
Projects
None yet
Development

No branches or pull requests

1 participant