On (24/05/08 16:41), Sergey Senozhatsky wrote: > +static int lz4_compress(void *ctx, const unsigned char *src, > + unsigned char *dst, size_t *dst_len) > +{ > + int ret; > + > + ret = LZ4_compress_default(src, dst, PAGE_SIZE, *dst_len, ctx); > + if (!ret) > + return -EINVAL; > + *dst_len = ret; > + return 0; > +} Apparently lz4 supports compression level tunable, which is "acceleration". I'll slightly rewrite lz4/lz4hc backends in v4.