Lower default LZMA2 compression level -> 0 (much better perf @ ~same ratio)

This commit is contained in:
Peter Taoussanis 2013-10-19 18:13:23 +07:00
parent 7804ca66d0
commit 33eee786be
3 changed files with 6 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View file

@ -51,7 +51,7 @@
;; {:default {:round 3632, :freeze 2349, :thaw 1283, :size 12369}} ;; {:default {:round 3632, :freeze 2349, :thaw 1283, :size 12369}}
;; {:encrypted {:round 6970, :freeze 4073, :thaw 2897, :size 12388}} ;; {:encrypted {:round 6970, :freeze 4073, :thaw 2897, :size 12388}}
;; {:fast {:round 3294, :freeze 2109, :thaw 1185, :size 13277}} ;; {: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 ;;; 11 Oct 2013: Nippy v2.2.0, with both ztellman mods
;; {:defaults {:round 4319, :freeze 2950, :thaw 1446, :data-size 12369}} ;; {:defaults {:round 4319, :freeze 2950, :thaw 1446, :data-size 12369}}

View file

@ -28,7 +28,7 @@
(->SnappyCompressor)) (->SnappyCompressor))
(deftype LZMA2Compressor [compression-level] (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 ICompressor
(compress [_ ba] (compress [_ ba]
(let [ba-len (alength ^bytes ba) (let [ba-len (alength ^bytes ba)
@ -55,8 +55,8 @@
"Alpha - subject to change. "Alpha - subject to change.
Default org.tukaani.xz.LZMA2 compressor: Default org.tukaani.xz.LZMA2 compressor:
Ratio: high. Ratio: high.
Write speed: very slow. Write speed: _very_ slow (also currently single-threaded).
Read speed: medium. Read speed: slow.
A specialized compressor for large, low-write, high-read data." A specialized compressor for large, low-write data."
(->LZMA2Compressor 4)) (->LZMA2Compressor 0))