]> git.ipfire.org Git - thirdparty/zstd.git/commit
[contrib][linux] Reduce stack usage by 80 bytes 2795/head
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:47 +0000 (18:18 -0700)
commit162491f6015a45f3391584cf64be45304ae91869
tree4e746b8e9ac86d82617f8967d7d10fe3559adec9
parentb25d57461e9778e9002fdfffc41eefdf6911aac7
[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