DioxusLabs / DioxusLabs/dioxus

Reuse asset optimization cache between release and debug builds

Open
#3,520 0 comments 0 reactions 0 assignees View on GitHub
cli manganis performance
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the asset optimization cache and the code that chooses separate release and debug output locations. Confirm how optimized assets are copied into final builds; done means both build modes reuse one cache without re-optimizing identical assets.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.