]> git.ipfire.org Git - thirdparty/zstd.git/commit
[contrib][linux] Reduce stack usage by 80 bytes
authorNick Terrell <terrelln@fb.com>
Thu, 23 Sep 2021 01:13:02 +0000 (18:13 -0700)
committerNick Terrell <terrelln@fb.com>
Thu, 23 Sep 2021 01:18:20 +0000 (18:18 -0700)
commit1715601e5524c8af1425680330135e3c7c188428
treee5d978bccf02c009504602f9941751aaf3e38640
parent07d7ebe44802e9ee567dc4fb006d6118d6f9082e
[contrib][linux] Reduce stack usage by 80 bytes

Instead of calling `ZSTD_compress_advanced()` and
`ZSTD_initCStream_advanced()`, which each take a `ZSTD_parameters` by
value, use the new advanced API.

Stack usage went from 2024 -> 1944.
contrib/linux-kernel/zstd_compress_module.c