Re: zram: Optimize LZ4 dictionary compression performance

From: Sergey Senozhatsky

Date: Tue Mar 10 2026 - 02:15:40 EST


On (26/03/10 02:54), gao xu wrote:
> + memcpy(zctx->cstrm, &drv->base_cstream,
> + sizeof(*zctx->cstrm));

Do we need to do this memcpy() every time?
A nit: if it cannot fit on one line, then let's align sizeof(*zctx->cstrm)
with "(".