A patch submitted to the Linux kernel mailing list by Gao Xu of HONOR proposes an optimization for LZ4 dictionary compression in the ZRAM module. The fix avoids repeated calls to `LZ4_loadDict()` by introducing a template stream mechanism that pre-processes the dictionary only once, then copies the state for subsequent compressions. Benchmarks show this can improve LZ4 dictionary compression performance by over 50% in ZRAM I/O tests. The patch is currently under review.

1m read timeFrom phoronix.com
Post cover image

Sort: