← Back to issue list

Allow setting compression algorithm per component

View original Github issue

Metadata

Project
snapcraft
Number
#6115
Type
issue
State
open
Author
farshidtz
Labels
Status: Triaged Type: Enhancement
Created
2026-03-23 08:59:00+00:00
Updated
2026-03-26 12:53:39+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Check existing issues - [x] I've verified that this request isn't described by any existing issues. ### Request Currently a snap and all its components use the compression algorithm that is set at the top level within snapcraft.yaml file. It is useful to allow a different compression algorithm between the snap and each of the components. ### The problem it solves A snap and its components may include different kinds of artifacts. In certain scenarios, using `lzo` instead of the default `xz` is beneficial for the performance of the application. However, having setting `lzo` globally means the package loses the compression rate and tends to be larger overall. For example, a package including a runtime and a large language model (LLM) could choose `xz` for the runtime (high compression gain on software artifacts) and `lzo` for the model (high performance when loading the model). Ideally, the LLM should be packaged with no compression at all if it is pre-compressed, but this is not supported right now.

Evaluation history

No evaluation history available.