Lower default LZMA2 compression level -> 0 (much better perf @ ~same ratio)
This commit is contained in:
parent
7804ca66d0
commit
33eee786be
3 changed files with 6 additions and 6 deletions
BIN
benchmarks.png
BIN
benchmarks.png
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
|
@ -51,7 +51,7 @@
|
|||
;; {:default {:round 3632, :freeze 2349, :thaw 1283, :size 12369}}
|
||||
;; {:encrypted {:round 6970, :freeze 4073, :thaw 2897, :size 12388}}
|
||||
;; {:fast {:round 3294, :freeze 2109, :thaw 1185, :size 13277}}
|
||||
;; {:lzma2 {:round 145301, :freeze 123650, :thaw 21651, :size 9024}}
|
||||
;; {:lzma2 {:round 44590, :freeze 29567, :thaw 15023, :size 9076}}
|
||||
|
||||
;;; 11 Oct 2013: Nippy v2.2.0, with both ztellman mods
|
||||
;; {:defaults {:round 4319, :freeze 2950, :thaw 1446, :data-size 12369}}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
(->SnappyCompressor))
|
||||
|
||||
(deftype LZMA2Compressor [compression-level]
|
||||
;; Compression level ∈ℕ[0,9] (low->high) with 6 LZMA2 default (we use 4)
|
||||
;; Compression level ∈ℕ[0,9] (low->high) with 6 LZMA2 default (we use 0)
|
||||
ICompressor
|
||||
(compress [_ ba]
|
||||
(let [ba-len (alength ^bytes ba)
|
||||
|
|
@ -55,8 +55,8 @@
|
|||
"Alpha - subject to change.
|
||||
Default org.tukaani.xz.LZMA2 compressor:
|
||||
Ratio: high.
|
||||
Write speed: very slow.
|
||||
Read speed: medium.
|
||||
Write speed: _very_ slow (also currently single-threaded).
|
||||
Read speed: slow.
|
||||
|
||||
A specialized compressor for large, low-write, high-read data."
|
||||
(->LZMA2Compressor 4))
|
||||
A specialized compressor for large, low-write data."
|
||||
(->LZMA2Compressor 0))
|
||||
|
|
|
|||
Loading…
Reference in a new issue