Skip to content
Commit 02cadf67 authored by Rui Salvaterra's avatar Rui Salvaterra
Browse files

luci-mod-system/zram: replace deflate with zstd



Deflate is just too slow for zram. Replace it with zstd, which is much faster at
similar compression ratios.

As a side note, this is an ugly hack. We're hard-coding compression algorithms
which might not be available in the system. The availability should be parsed
from /sys/block/zram0/comp_algorithm.

Signed-off-by: default avatarRui Salvaterra <rsalvaterra@gmail.com>
parent aa439dbe
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment