Lz4

lz4:最大超快壓縮級別是多少?

  • November 14, 2022

來自man lz4

--fast[=#]
      Switch  to ultra-fast compression levels. The higher the value, the faster the compres‐
      sion speed, at the cost of some compression ratio. If =# is not present, it defaults to
      1.  This setting overrides compression level if one was set previously. Similarly, if a
      compression level is set after --fast, it overrides it.

那麼最大超快壓縮級別是多少?它與壓縮級別相同(12)嗎?

目前是 65537,由常數LZ4_ACCELERATION_MAX確定

另請參閱有關“快速”壓縮的庫文件

看命令行源碼,壓縮級別設置為負數--fast=#;這是這個數字的唯一用途。正如您所說,最大壓縮級別是 12,所以雖然我不能 100% 確定這裡存在對稱性,但最大有效快速數也可能是 12。

引用自:https://unix.stackexchange.com/questions/724795