Clarafying compresson levels #220
Unanswered
ChaosNicro
asked this question in
Q&A
Replies: 1 comment 1 reply
-
IIRC it is being pass through to the underlying compression code, and they don't standardize or have hard limits in some cases. If you look at https://docs.rs/zstd/latest/src/zstd/lib.rs.html#39-42 , then at https://github.com/facebook/zstd/blob/909925785ae0c0f83f7a7d4738e5eb2a0cef78ad/build/single_file_libs/examples/roundtrip.c#L39 , it is 20 currently for zstd, but I think it used to be 22, and then 21, so 🤷 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When initializing a repository, one can set a level for the given compression.
In the help it only states that they are normalized to 0 and can be adjusted from there. This likely helps with adjusting for different algorithms being slotted into the command structure, but I would like to know an effective range (eg. -5 to 9), as well as some indication of the mapping (eg. how to get the equivalent of 'zstd -15').
Is that documented somewhere?
Beta Was this translation helpful? Give feedback.
All reactions