Open joshuataylor opened 1 year ago
Gitea uses github.com/mholt/archiver/v3
which has been mentioned here https://github.com/go-gitea/gitea/issues/14290#issuecomment-1193314250
And it using github.com/klauspost/compress/zstd
to handle tar.zst
type.
According to the home page of this package, only zstd level 1 and 3 has been implemented.
For now, a high speed (fastest) and medium-fast (default) compressor has been implemented.
- The "Fastest" compression ratio is roughly equivalent to zstd level 1.
- The "Default" compression ratio is roughly equivalent to zstd level 3 (default).
- The "Better" compression ratio is roughly equivalent to zstd level 7.
- The "Best" compression ratio is roughly equivalent to zstd level 11.
So the environment ZSTD_CLEVEL
would not have effect, as it is not using zstd
command.
https://manpages.debian.org/unstable/zstd/zstd.1.en.html
Description
Using the environment
ZSTD_CLEVEL
doesn't seem to work, as noted on the initial feature request.I've tried various levels. Does the go version use these levels?
I have 3 smallish repositories:
Command used:
Output:
FYI, i also benchmarked the other commands.
Gitea Version
1.20.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.40.1
Operating System
Docker gitea/gitea
How are you running Gitea?
Docker gitea/gitea
Database
None