diff options
| author | David Sterba <dsterba@suse.com> | 2025-02-12 23:22:02 +0300 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-03-18 22:35:42 +0300 |
| commit | cfb999b81aa6285db1ecf090346be46d53213384 (patch) | |
| tree | 5a99c20e4c2028afc159066c7f0cc17ed917d5f3 /tools/perf/scripts/python/sched-migration.py | |
| parent | a8511baf321decd78320ba36c24c2ae11196a8b4 (diff) | |
| download | linux-cfb999b81aa6285db1ecf090346be46d53213384.tar.xz | |
btrfs: zstd: move zstd_parameters to the workspace
Reduce stack consumption of zstd_compress_folios() by 40 bytes
(10*sizeof(int)) as we can store struct zstd_parameters in the workspace
that is reused for each call.
typedef struct {
ZSTD_compressionParameters cParams;
ZSTD_frameParameters fParams;
} ZSTD_parameters;
typedef struct {
unsigned windowLog;
unsigned chainLog;
unsigned hashLog;
unsigned searchLog;
unsigned minMatch;
unsigned targetLength;
ZSTD_strategy strategy;
} ZSTD_compressionParameters;
typedef struct {
int contentSizeFlag;
int checksumFlag;
int noDictIDFlag;
} ZSTD_frameParameters;
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions
