mirror of
https://gitea.com/gitea/docs.git
synced 2026-06-22 04:05:57 +00:00
Clarify the valid values for COMPRESSION_LEVEL (#42)
Remove the comment that values must be preceded with a `-` and add details about default and Huffman compression along with links to the Golang documentation. Reviewed-on: https://gitea.com/gitea/docs/pulls/42 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: josh-stengg <josh-stengg@noreply.gitea.com> Co-committed-by: josh-stengg <josh-stengg@noreply.gitea.com>
This commit is contained in:
@@ -182,9 +182,8 @@ Settings:
|
||||
`MAX_SIZE_SHIFT` defines the maximum size of a file by left shifting 1 the given number of times (`1 << x`).
|
||||
The exact behavior at the time of v1.17.3 can be seen [here](https://github.com/go-gitea/gitea/blob/v1.17.3/modules/setting/log.go#L185).
|
||||
|
||||
The useful values of `COMPRESSION_LEVEL` are from 1 to (and including) 9, where higher numbers mean better compression.
|
||||
The useful values of `COMPRESSION_LEVEL` are from 1 (best speed) to 9 (best compression). [DefaultCompression](https://pkg.go.dev/compress/gzip#pkg-constants) (-1) and [HuffmanOnly](https://pkg.go.dev/compress/flate#HuffmanOnly) (-2) can also be chosen.
|
||||
Beware that better compression might come with higher resource usage.
|
||||
Must be preceded with a `-` sign.
|
||||
|
||||
### Conn mode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user