Hacker News new | ask | show | jobs
by ssivark 2242 days ago
Yeah, then stop burying yourself with Apple devices.

Anyways, it makes sense to maintain something like an LRU cache, and compress only the least used things.

1 comments

Why would you? lz4 decompresses at ~5GB/s on a modern CPU [1] with good compression ratios, that's still more than most SSDs can push nowadays. Most applications are small fraction of that size on-disk.

The problems arise when you start using xz-compressed squashfs images. LZMA2 is optimized for compression ratio and typically decompresses several times slower than even zlib deflate (which is already ~10 slower than lz4).

[1] https://github.com/lz4/lz4