Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set compression level for zstd to level 10 #396

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/compression_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,16 @@ typedef struct {
unsigned char buffer[XZ_BUFFER_SIZE];
} XzFile;

#define CR_CW_ZSTD_COMPRESSION_LEVEL 9

/** level 10 or 11 are good choices for the XML files that we generate.
* level 10 requires ~ 18% more time with 1% saving over level 9
* level 11 requires ~ 50% more time with 1.5% saving over level 9
* level 12 requires ~ 65% more time with 1.5% saving over level 9
* level 13 requires ~ 260% more time with 1.55% saving over level 9
*/

#define CR_CW_ZSTD_COMPRESSION_LEVEL 10

typedef struct {
void *buffer;
size_t buffer_size;
Expand Down